[英]How do I import a python project that is not available in package manager in PyCharm
I have created a simple python
project in PyCharm. 我在PyCharm中创建了一个简单的python
项目。 It only has one python
file as of now. 到目前为止,它只有一个python
文件。 I'd like to import this github
project in my newly created python
project so that I can reference some of its libraries and add something in my python
file. 我想在新创建的python
项目中导入该 github
项目,以便我可以引用其某些库并在python
文件中添加一些内容。 How do I do this in PyCharm
? 如何在PyCharm
做到这一点? I tried to go to Python Interpreter
and adding this github project after cloning it but it didn't work. 我试图去Python Interpreter
并在克隆它后添加这个github项目,但是没有用。
This is what I did 这就是我所做的
cloned
project from github. 我使用终端去了从github cloned
项目。 setup.py
. 这个文件夹有一个setup.py
。 site-packages
folder where my python3
installation was 然后将其安装到我的python3
安装所在的我的site-packages
文件夹中 Pycharm
and clicked on Preferences
>> Python Interpreter
then in the list I saw the installed github
project 然后我打开Pycharm
,然后单击Preferences
>> Python Interpreter
然后在列表中看到已安装的github
项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.