我正在尝试在Mac上从我自己的github本地运行一个现有的django1.9项目。在
https://github.com/shanegibney/djangoForum.git
自从一年前发布到github以来,我已经从linux、Fedora搬到了mac上。在
我一直在听从来自的指示
How to run cloned Django project?
$mkdir djangoForum美元
$cd djangoForum
$虚拟人
$git克隆https://github.com/shanegibney/djangoForum.git
$source env/bin/激活
$cd djangoForum
$pip安装-r要求.txt在
这就是我得到以下错误的地方
(env) shanegibney at Shanes-MacBook-Pro in ~/djangoForum/djangoForum on master*
$ pip3 install -r requirements.txt
Collecting arrow==0.7.0 (from -r requirements.txt (line 1))
Using cached arrow-0.7.0.tar.gz
Collecting beautifulsoup4==4.4.1 (from -r requirements.txt (line 2))
Using cached beautifulsoup4-4.4.1-py3-none-any.whl
Collecting disqus==0.0.4 (from -r requirements.txt (line 3))
Using cached disqus-0.0.4.tar.gz
Collecting Django==1.10.2 (from -r requirements.txt (line 4))
Using cached Django-1.10.2-py2.py3-none-any.whl
Collecting django-allauth==0.25.2 (from -r requirements.txt (line 5))
Using cached django-allauth-0.25.2.tar.gz
Collecting django-allauth-bootstrap==0.1 (from -r requirements.txt (line 6))
Using cached django-allauth-bootstrap-0.1.tar.gz
Collecting django-emoticons==1.1.2 (from -r requirements.txt (line 7))
Using cached django_emoticons-1.1.2-py2.py3-none-any.whl
Collecting django-forms-bootstrap==3.0.1 (from -r requirements.txt (line 8))
Using cached django-forms-bootstrap-3.0.1.tar.gz
Collecting django-tinymce==2.3.0 (from -r requirements.txt (line 9))
Using cached django-tinymce-2.3.0.tar.gz
Collecting evernote==1.25.1 (from -r requirements.txt (line 10))
Using cached evernote-1.25.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8z/jqnd9kp531q6h12pj95z0kwc0000gn/T/pip-build-_kcvo5hn/evernote/setup.py", line 6
exec x
^
SyntaxError: Missing parentheses in call to 'exec'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8z/jqnd9kp531q6h12pj95z0kwc0000gn/T/pip-build-_kcvo5hn/evernote/
无论我使用pip还是pip3,错误都是相同的。在
$pip—版本 pip9.0.1来自/Users/shanegibney/djangforum/env/lib/python3.6/site-packages(python3.6)
$python—版本
Python 3.6.3
$哪个Python
/Users/shanegibney/djangforum/env/bin/python
$哪个Python
不返回任何内容
在要求.txt文件在这里
https://github.com/shanegibney/djangoForum/blob/master/requirements.txt
有人知道我为什么在安装时出错吗需求.txt?在
试着把我的虚拟人变成Python
$virtualenv-pPython2 v
路径python2(from--python2=python2)不存在
Evernote SDK for Python只支持python2。您会得到错误,因为您的虚拟环境在python3中。激活virtualenv后,
pip
也将安装到python3virtualenv中。在自述文件有一个指向experimental repository for Python 3的链接。您可以尝试安装它,但您可能会发现项目中存在其他不兼容。另一个选择是在python2中运行项目。在
如果您决定使用Python2,那么确保在创建virtualenv时使用Python2,例如
然后在安装需求之前激活你的virtualenv。在
再次检查Python2是否用于此项目。 如果是,请使用注释安装依赖项
如果使用Python3+。 使用注释用Python3创建Virtualenv
^{pr2}$安装依赖项
相关问题 更多 >
编程相关推荐