adding a newly created and uploaded package to pycharm

ぐ巨炮叔叔 提交于 2019-12-08 15:02:13

问题


  1. I created a package (thompcoUtils) on test.pypi.org and pypi.org
  2. https://pypi.org/project/thompcoUtils/ and https://test.pypi.org/project/thompcoUtils/ show the package is installed in both the test and live repositories
  3. I added the repositories https://test.pypi.org/simple/ and https://pypi.org/simple/ to pycharm.
  4. I refreshed and searched for the package in pycharm under available packages but thompcoUtils could not be found.
  5. 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


回答1:


This question is better asked in a different way so I am answering it and closing it out.



来源:https://stackoverflow.com/questions/55080076/adding-a-newly-created-and-uploaded-package-to-pycharm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!