Posts

Jupyter notebook virtual environment (windows 10)

Image
Hi,πŸ‘‹ in this article I suppose that you already created your virtual environment and you already use anaconda. 1- Open anaconda prompt (base) C:\Users\Me> 2- Type the command: conda env list this command will give you all virtual environments that you have already created πŸ‘‡: (base) C:\Users\Me>conda env list 3- Choose the virtual env that you want,(in my case I choose the environment " tf_2-4_jupyter ") then activate it with this command : conda activate your chosen virtual  environment ,  (base) C:\Users\My>conda activate tf_2-4_jupyter   (tf_2-4_jupyter)   C:\Users\My> 4- Install "ipykernel" with the command pip install --user ipykernel (tf_2-4_jupyter) C:\Users\My>pip install --user ipykernel if you successfully installed it πŸ‘ you will got this message: " Successfully installed i pykernel -5.5.5 jupyter-client-6.1.12 jupyter-core-4.7.1 pywin32-301 pyzmq-22.1.0 tornado-6.1" 5-  Type python -m ipykernel install --user --name= your cho...

NameError: name 'tf' is not defined

import tensorflow as tf from tensorflow import keras πŸ˜€

ImportError: DLL load failed while importing win32api

1- pip uninstall pywin32 2- pip install pywin32 πŸ˜ƒ solved

ImportError: cannot import name 'tensorflow' from partially initialized module 'opt_einsum.backends' (most likely due to a circular import) (C:\Users\xxx\Anaconda3\lib\site-packages\opt_einsum\backends\__init__.py)

 In my case to solve this error I use an environment with: 1. python 3.8 2. tensorflow 2.4 πŸ’ͺThat's all 

"ImportError: DLL load failed while importing win32api" Resolved error

Image
 To solve this error  1.open Anaconda Prompt (if you are using anaconda ) 2. pip uninstall pywin32 3. pip install pywin32==225 πŸ’ͺ that's all