简体   繁体   中英

virtualenv pip can't install packages

I'm having trouble installing packages using virtualenv with python. I do the following:

sudo virtualenv venv
cd venv/bin
source activate
pip install nose

I get the following error:

unable to execute /Users/../venv/bin/pip: No such file or directory

What am I doing wrong here?

run:

cd /usr/local/bin
sudo ./pip install virtualenv
which virtualenv 

This should point to /usr/local/bin/virtualenv

which pip

This should point to /usr/local/bin/pip

virtualenv /Users/yourname/path/to/env/envname

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM