我用pip install virtualenv
设置了虚拟环境
然后用.\env\Scripts\activate
激活它
当我尝试在我的views.py
中导入numpy时,我得到这个错误
如果我切换到Python全局,导入工作,但我不能运行服务器
激活虚拟环境后使用pip install numpy
时,出现此错误。
path...\env\Scripts\pip.exe" install numpy': The system cannot find the file specified.
1条答案
按热度按时间g2ieeal71#
实测溶液:
python -m pip install [module name]