Install python-numpy in the Virtualenv environment

后端 未结 2 668
青春惊慌失措
青春惊慌失措 2021-02-08 23:48

I would like to install the python-numpy in the Virtualenv environment. My system is Ubuntu 12.04, and my python is 2.7.5. First I installed the Virtualenv by

$         


        
2条回答
  •  别跟我提以往
    2021-02-09 00:17

    meddling with PYTHONPATH for site-packages indeed defeats the purpose of virtalenv. what worked for me was to specify the env i wanted the packages to be installed in via pip

    example:

    pip -E /home/proj1 
    

    where proj1 was created using virtualenv.

    reference: how to install numpy in a virtualenv

提交回复
热议问题