将新创建和上传的包添加到 pycharm [英] adding a newly created and uploaded package to pycharm
本文介绍了将新创建和上传的包添加到 pycharm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 我在 test.pypi.org 和 pypi.org 上创建了一个包 (thompcoUtils)
但是,我知道它在那里,因为我可以编辑它:
我试过了:
twine 上传 dist/*
现在我可以从 pip3 正确安装(当我更新包版本然后上传它时,包被正确下载和安装)但是,我仍然无法在我的 python3 脚本中导入它
解决方案这个问题最好在 不同的方式 所以我正在回答它并关闭它.
- I created a package (thompcoUtils) on test.pypi.org and pypi.org
- https://pypi.org/project/thompcoUtils/ and https://test.pypi.org/project/thompcoUtils/ show the package is installed in both the test and live repositories
- I added the repositories https://test.pypi.org/simple/ and https://pypi.org/simple/ to pycharm.
- I refreshed and searched for the package in pycharm under available packages but thompcoUtils could not be found.
- I am using virtual environments in pycharm
I am able to install the package with both
pip install thompcoUtils
and
pip3 install thompcoUtils
Any suggestions would be most helpful!
When I search for the package, its not there:
BUT, I know its there because I can edit it:
I tried this:
twine upload dist/*
and now I can install from pip3 correctly (when I update the package version and then upload it, the package is correctly downloaded and installed) but, I still cannot import it in my python3 script
解决方案This question is better asked in a different way so I am answering it and closing it out.
这篇关于将新创建和上传的包添加到 pycharm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文