为什么用户站点程序包在virtualenv中不可见?

问题描述 投票:0回答:1

[使用命令nltk安装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吗?

python nltk virtualenv
1个回答
2
投票

我认为激活venv时不需要--user参数。

简单运行pip install nltk

© www.soinside.com 2019 - 2024. All rights reserved.