简体   繁体   English

在virtualenv中安装python-scipy

[英]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. 我正在尝试在我的virtualenv中制作scipy,但安装它的唯一方法是使用apt-get,并且没有办法为我的虚拟环境安装它。 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. 不退出包的包,所以我尝试将文件夹/usr/lib/python2.7/dist-packages/scipy复制到/home/envs/conbert/lib/python2.7/site-packages但是没有工作。 Is possible make work scipy for a specific environment? 是否可以为特定环境制作scipy?

You can install scipy using pip in your virtualenv with 您可以使用pip在virtualenv中安装scipy

pip install scipy

pip should install all Python dependencies necessary before installing scipy . pip应该在安装scipy之前安装所有必需的Python依赖scipy

Note that you may have to install some extra non-Python dependencies using apt-get . 请注意,您可能必须使用apt-get安装一些额外的非Python依赖apt-get These will be flagged as errors during the pip installation if they're necessary. 如果必要,这些将在pip安装期间标记为错误。 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. 可能的依赖关系可能包括BLAS,LAPACK,ATLAS,各种编译器等。这些是否已经安装将取决于您已经对系统做了什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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