Install Python package from GitHub using PyCharm

前端 未结 5 1796
遥遥无期
遥遥无期 2020-12-05 11:32

I created a VirtualEnv in PyCharm to install my Python packages. I wanted to install this fork of the django project from GitHub.

https://github.com/django-nonrel/dj

5条回答
  •  生来不讨喜
    2020-12-05 12:09

    I was struggling to find a way to do this within the PyCharm UI, but it is possible through the integrated Python console:

    1. Load your project with the appropriate VE
    2. Under the Tools dropdown, click Python Console
    3. Then use pip from within the console:

      import pip
      pip.main(['install','packagename'])
      

提交回复
热议问题