Python module not found in virtualenv

前端 未结 2 441
感动是毒
感动是毒 2021-01-03 11:45

I\'ve tried to install a python module:

virtualenv .
source bin/activate
pip install utmp

It seems to be installed:

(wtmp)c         


        
2条回答
  •  -上瘾入骨i
    2021-01-03 12:10

    Just bumped into the same issue. I found out what is wrong by using which python. It showed me that I actually have an alias in place which points to a different python executable than the one in current virtualenv. Apparently aliases are more important than paths set via source.

提交回复
热议问题