简体   繁体   English

Python:安装未来模块时出错

[英]Python : error during installation of future module

Here is my configuration : Windows 7 64 bits, Python 3.5.3 64 bits这是我的配置:Windows 7 64 位,Python 3.5.3 64 位

I am trying to install future-0.16.0.tar.gz via the setup file (can't use pip because I am not connected to the Internet), and I get this error :我正在尝试通过安装文件安装 future-0.16.0.tar.gz(无法使用 pip,因为我没有连接到 Internet),我收到此错误:

*...byte-compiling build\\bdist.win-amd64\\egg\\libfuturize\\fixes\\fix_add__future__imports_except_unicode_literals.py to fix_add__future__imports_except_unicode_literals.cpython-35.pyc *...字节编译 build\\bdist.win-amd64\\egg\\libfuturize\\fixes\\fix_add__future__imports_except_unicode_literals.py 到 fix_add__future__imports_except_unicode_literals.cpython-35.pyc

error: [Errno 2] No such file or directory: 'build\\bdist.win-amd64\\egg\\libfuturize\\fixes\\__pycache__\\fix_add__future__imports_except_unicode_literals.cpython-35.pyc.69344256'*错误:[Errno 2] 没有这样的文件或目录:'build\\bdist.win-amd64\\egg\\libfuturize\\fixes\\__pycache__\\fix_add__future__imports_except_unicode_literals.cpython-35.pyc.69344256'*

Just to check, I have tried to install the future module with Python 3.5.3 32 bits and have encountered any problem at all.只是为了检查,我尝试使用 Python 3.5.3 32 位安装未来模块,但遇到了任何问题。 But for a problem of Oracle client, I can't use the win32 version... So I am stuck...但是对于oracle客户端的一个问题,win32版本不能用了。。。所以卡死了。。。

Does someone have an idea of where this comes from?有人知道这是从哪里来的吗?

Thanks.谢谢。

Thanks to the team that works on future, I had my answer.感谢为未来工作的团队,我得到了答案。

The problem was I reached the MAX_PATH (The maximum character length of a path) of Windows.问题是我达到了 Windows 的 MAX_PATH(路径的最大字符长度)。 That "simple"!那个“简单”!

So I copied the source files locally, and installed them.所以我在本地复制了源文件,并安装了它们。 Problem solved.问题解决了。

Python was not guilty!蟒蛇没有罪! And the work can go on...工作可以继续……

Here's an article on how to enable paths > 260 chars: How to Make Windows 10 Accept File Paths Over 260 Characters这是一篇关于如何启用大于 260 个字符的路径的文章: 如何使 Windows 10 接受超过 260 个字符的文件路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM