addok: bash: venv/bin/activate: No such file or directory
What will i do?
root@map-1:~# source venv/bin/activate
bash: venv/bin/activate: No such file or directory
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (3 by maintainers)
fixed 1-
pip install --upgrade virtualenv
2-virtualenv -p python3 venv
Utilizei esse caminho. $ source venv/Scripts/activate
still the same error source no such dir
That’s not the correct fix:
pip
should only be run while the venv is active, sovirtualenv
must be installed through your system packages (python-virtualenv
).You can also run
python3 -m venv path/to/venv
to create the venv, and remember to activate it then.I did sudo apt-get install python3.7-venv and python3.7 -m venv myenvname and then source myenvname/bin/activate no file (there are only 2 folders lib and include)
To fix that I did sudo apt-get install python3-venv and python 3 -m venv myenvname and then source myenvname/bin/activate works good (enter into virtual environment)
I’m not sure if this is correct, but I checked the venv directory and activate was in the Scripts folder, not bin.
source venv/Scripts/activate works for me
Worked for me as I am using bash on Windows OS
what worked for me :
pip install colorlog
I ran this command
python3 -m venv path / to / venv
so I had to go back tocd venv env
- after that the commandvenv / bin / activate
workedI am facing the same issue, I have tried all these commands, it is still showing no such directory.