无法通过在Python 3.4上运行的pip安装模块 [英] Cannot install modules via pip running on python 3.4

查看:161
本文介绍了无法通过在Python 3.4上运行的pip安装模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试安装运行此脚本所需的各种模块:

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

https://github.com/austingandy/slack-evernote/blob/master/slackwriter.py

我正在使用Mac,而我的python --version是:

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

Python 3.4.3 :: Anaconda 2.3.0 (x86_64)

我有python -m pip --version:

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

但是,例如,当我运行pip install evernote时,会出现类似以下错误:

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 "<string>", line 1, in <module>
      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

我感觉这些错误是因为pipsetup.py代码是python 2.7格式,而我的环境是3.4,但是我如何才能整体安装运行此脚本所需的所有软件包?我会更改为python 2.7,在该环境中安装,然后将Evernote的安装程序重新打包为python 3.4格式吗?如果可以,怎么办?

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,尚不支持适用于Python 3的Evernote SDK.

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

https://github.com/evernote/evernote-sdk-python3

这是一个测试SDK!官方适用于Python的Evernote SDK没有 还支持Python 3;该存储库是我们尝试进行的实验 迁移.

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.

您可以尝试从上面的链接手动安装或在虚拟环境中降级到python2.

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

这篇关于无法通过在Python 3.4上运行的pip安装模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆