已安装软件包,但未在pycharm的可用软件包中显示 [英] package installed but not showing in the pycharm's available packages

查看:285
本文介绍了已安装软件包,但未在pycharm的可用软件包中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用pip install pyautogui安装了PyAutoGUI软件包. 我可以告诉它已安装,因为我可以使用PyCharm终端将其导入:

I installed the PyAutoGUI package using pip install pyautogui. I can tell it's installed since I can import it using the PyCharm terminal:

Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyautogui
>>> print(pyautogui)
<module 'pyautogui' from 'C:\\python\\anaconda3\\lib\\site packages\\pyautogui\\__init__.py'>
>>>

我的问题是:当我尝试将其添加到项目虚拟环境中时,无法在可用的软件包中找到它.有什么办法可以手动添加吗?

My problem is: When I try to add it to my project virtual environment, I can't find it on the available packages. Is there any way to add it manualy ?

P.S .:这就是我要添加的方式:

P.S.: This is how I'm trying to add it:

File>Settings>Project>Project interpreter>install(the green plus button)>available packages>install

推荐答案

我通过卸载anaconda python和pycharm然后重新安装pycharm和python(不是anaconda)来解决此问题,现在我可以将模块添加到我的venvs中了.

I work around this problem by uninstalling anaconda python and pycharm then reintalling pycharm and python (not anaconda), now i can add modules to my venvs no problem.

注意: 首先,可用的软件包列表为空,直到我添加了" https://pypi.python.org/"到我的存储库.

Note: at first, the available packages list was empty until i added "https://pypi.python.org/" to my repositories using the manage repositories button.

这篇关于已安装软件包,但未在pycharm的可用软件包中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆