简体   繁体   中英

Install python-scipy in a virtualenv

I'm trying making work scipy in my virtualenv but the only way to install it is with apt-get and there is not a way to install it for my virtual env. Doesn't exits a package for pil, so i tried copy the folder /usr/lib/python2.7/dist-packages/scipy to /home/envs/conbert/lib/python2.7/site-packages but is not working. Is possible make work scipy for a specific environment?

You can install scipy using pip in your virtualenv with

pip install scipy

pip should install all Python dependencies necessary before installing scipy .

Note that you may have to install some extra non-Python dependencies using apt-get . These will be flagged as errors during the pip installation if they're necessary. Possible dependencies may include BLAS, LAPACK, ATLAS, various compilers, etc. Whether these are already installed will depend on what you've already done with your system.

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