[Python-modules-team] Another virtualenv question

Scott Kitterman debian at kitterman.com
Tue Apr 28 22:55:10 BST 2020


On Tuesday, April 28, 2020 5:48:04 PM EDT Rainer Dorsch wrote:
> Hello,
> 
> I have another basic virtualenv question:
> 
> I install covidify in a virtualenv and if finds the dependency
> 
> Requirement already satisfied: docopt in /usr/lib/python3/dist-packages
> (from covidify) (0.6.2)
> 
> installed on the system. But later, when I run the python script, it is not
> found:
> 
> Traceback (most recent call last):
>   File "/home/rd/.local/lib/python3.7/site-packages/covidify/data_prep.py",
> line 17, in <module>
>     import docopt
> ImportError: No module named docopt

This is a quick guess and I'm just about to leave, but try creating the 
virtualenv with the --system-site-packages option.  See man 1 virtualenv.

Scott K
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200428/6954f62e/attachment.sig>


More information about the Python-modules-team mailing list