python-shell icon indicating copy to clipboard operation
python-shell copied to clipboard

Python path of virtual environment

Open cerberusv2px opened this issue 5 years ago • 5 comments

What should be the exact path ko virtual environment of the python? somepath/venv/bin or somepath/venv/lib/python3.6/site-packages. Getting an error message like this: Error: spawn ..vrp/venv/lib/python3.6/site-packages EACCES

cerberusv2px avatar Jan 29 '20 06:01 cerberusv2px

It depends on where the tool you have used to create the virtual environment has placed the virtual environment.

Almenon avatar Apr 20 '20 00:04 Almenon

What command did you use to create the virtual env?

Almenon avatar Apr 20 '20 00:04 Almenon

can someone please help me on how do i run the shell with virtual environment? (trying to use custom imports) i activated it via the terminal and it's working in the terminal, but not in the python shell.

mikeper030 avatar May 11 '20 17:05 mikeper030

typing which python3 into the command line while running in my pipenv virtual environment correctly gives me back the python path. This fixed this error for me, hopefully that helps

RedHairring avatar Oct 30 '20 20:10 RedHairring

Hi @RedHairring if it is possible may you attach some code? I have the same error as @cerberusv2px. image

jaizquierdogalan avatar Oct 29 '21 14:10 jaizquierdogalan