使用:Ubuntu13.10与python一起安装
Python 2.7.5+.
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import github3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named github3
>>> 试图安装github3.py获取"ImportError:“
我不知道发生了什么事。我对python很陌生,为了学习这门语言,我安装了它。如果有人有意见,请告诉我。
发布于 2015-01-19 01:52:18
在导入github3.py库之前,您需要安装它。
在linux shell中尝试:sudo pip install github3.py (sudo只在你是管理员的情况下,在系统范围内安装它)
它应该会在事后起作用。
发布于 2018-03-08 12:39:44
pip install github3.py
或
git clone git://github.com/sigmavirus24/github3.py.git github3.py
cd github3.py
python setup.py install
发布于 2022-02-05 12:40:17
使用: Kali Linux
目前,“github3”模块无法在pythonVersion2.7中工作..。我也知道这个错误!
└─$ python
Python 2.7.18 (default, Jul 14 2021, 08:11:37)
[GCC 10.2.1 20210110] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import github3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named github3但是通过python 3,我成功地摆脱了错误!
└─$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import github3
>>> exit()这个模块很可能现在只与python 3兼容.https://pypi.org/project/github3.py/
https://stackoverflow.com/questions/28016836
复制相似问题