Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

Problem with running venv

$
0
0

Attempting to create a new environment using venv, installed Ubuntu for WSL, updated, and installed venv without issue.

My problem is when I try to run venv, to create the new environment I used:

$ python3 -m venv ~/.virtualenvs/django

But when I try to run this from ~ (/home/username) using:

source ~/.virtualenvs/django/bin/activate

I get the following error:

bash: home/username/.virtualenvs/django/bin/activate: No such file or directory

Previously, I set up venv using:

python3 -m venv /home/testenv

Then ran:

cd /home

Followed by:

source /home/testenv/bin/activate

Which worked. My question is am I simply in the wrong directory to run this? I have tried this from /home/username, /home, following the file path all the way to bin with no luck.


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>