python3.4安装pip,无法通过在Python 3.4上运行的pip安装模块

I have been trying to install various modules that I need to have to run this script:

I am working off a Mac, and my python --version is:

Python 3.4.3 :: Anaconda 2.3.0 (x86_64)

And I have for python -m pip --version:

pip 8.0.2 from /Users/dhruv/anaconda/lib/python3.4/site-packages (python 3.4)

However, for example when I run pip install evernote I get errors like:

Collecting evernote

Using cached evernote-1.25.1.tar.gz

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "", line 1, in

File "/private/var/folders/cj/5gs43w4n2tz313rrnz9_htf00000gn/T/pip-build-0y7hm202/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/cj/5gs43w4n2tz313rrnz9_htf00000gn/T/pip-build-0y7hm202/evernote

I have a feeling that these errors are because the setup.py code that pip has is in python 2.7 format, and my environment is 3.4, but how can I overall install all the packages I need to run this script? Would I change to python 2.7, install in that environment, and then repackage the setup of evernote into python 3.4 format? If so, how?

解决方案

AFAIK, Evernote SDK for Python 3 is not yet supported.

This is a test SDK! The official Evernote SDK for Python doesn't

support Python 3 yet; this repository is an experiment as we try to

migrate.

You can try installing manually from the link above or downgrade to python2 in your virtual env.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值