简体   繁体   中英

installing a python package in virtual environment

I want to install quippy which is supported by python2.7. I created a virtual environment:

virtualenv -p /usr/bin/python2.7 quippy_env

and activated it. I compilation looks fine and I got no errors. However, when I try to import quippy it gives me the error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named quippy

I would appreciate your comments.

Did you install quippy?

in your virtual env run

pip install quippy

Most of the time the NoModuleFound exception is due to not having the python package installed in your env.

也许手动下载软件包并安装。

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