我使用pip安装了django-ckeditor,但是当我尝试手动创建venv时,它会转到“ /home/def-dev/.local/lib/python3.8/site-packages”路径。
但是当我用pycharm创建项目时,它会转到“ ./venv/lib/python3.8/site-packages”路径 该路径属于内部项目的venv。
pycharm未知。
我该怎么做才能使pycharm从“ /home/def-dev/.local/lib/python3.8/site-packages”中找到软件包,或者当我手动创建venv时,将保存的软件包pip保存到“ ./venv中” /lib/python3.8/site-packages”路径。
当我手动创建venv时
$ pip3 install django-ckeditor
Requirement already satisfied: django-ckeditor in /home/def-dev/.local/lib/python3.8/site-
packages (5.9.0)
Requirement already satisfied: django-js-asset>=1.2.2 in /home/def-
dev/.local/lib/python3.8/site-packages (from django-ckeditor) (1.2.2)
当我用pycharm创建venv时
$ pip3 install django-ckeditor
Requirement already satisfied: django-ckeditor in ./venv/lib/python3.8/site-packages (5.9.0)
Requirement already satisfied: django-js-asset>=1.2.2 in ./venv/lib/python3.8/site-packages
(from django-ckeditor) (1.2.2)