为什么用户站点包在 virtualenv 中不可见?
Why User site-packages are not visible in virtualenv?
安装 nltk module, one of these prerequisites 时,使用命令 pip install --user -U nltk
在名为 dl4cv 的 venv 中,我得到了错误:
(dl4cv) hdafa@hdafa-HP-ProBook-450-G5:~$ pip install --user -U nltk
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
有什么办法让这些工具在 venv 中可见,这样我就可以在 dl4cv 中安装 nltk 了吗?
我认为您在激活 venv 时不需要 --user 参数。
简直运行pip install nltk
安装 nltk module, one of these prerequisites 时,使用命令 pip install --user -U nltk
在名为 dl4cv 的 venv 中,我得到了错误:
(dl4cv) hdafa@hdafa-HP-ProBook-450-G5:~$ pip install --user -U nltk
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
有什么办法让这些工具在 venv 中可见,这样我就可以在 dl4cv 中安装 nltk 了吗?
我认为您在激活 venv 时不需要 --user 参数。
简直运行pip install nltk