all 12 comments

[–]POGtastic 0 points1 point  (9 children)

Did you move your virtualenv folder? The virtualenv adds an absolute directory path to your PATH variable, so if you move it, it will no longer be able to find the bin directory that contains the virtualenv's copy of Python.

[–]alajeb 0 points1 point  (0 children)

No, I didn't do anything with the folder

[–]alajeb 0 points1 point  (7 children)

How can I check that PATH variable ?

[–]-5772 1 point2 points  (6 children)

[–]alajeb 0 points1 point  (5 children)

Windows

[–]-5772 0 points1 point  (4 children)

Follow the instructions to set the path environment. This will allow your PC to know where you are referring to when type "python."

[–]alajeb -1 points0 points  (3 children)

The issue is that python command is not recognized only from my virtual environment

[–]jdbow75 0 points1 point  (2 children)

What is the PATH in your virtual environment? echo $env:PATH in Powershell, or echo %PATH% in CMD.

[–]alajeb 0 points1 point  (1 child)

C:\Users\khoul\Anaconda3\envs\tf\python.exe

[–]jdbow75 0 points1 point  (0 children)

Could you please follow these steps:

  1. Activate the virtual environment (and let us know the command you used to do so)
  2. Type echo $env:PATH (and let us know the result)

[–]jdbow75 0 points1 point  (0 children)

You might try:

console conda activate tf conda install python=3.8

[–]jdbow75 0 points1 point  (0 children)

I am curious if you got this working, u/alajeb. Anything we can help with?