简体   繁体   中英

python - IO Error [Errno 2] No such file or directory when downloading package

I was trying to download a Python wrapper called rawpy on my Windows machine. I used the command "pip install rawpy". I have already looked at many other SO threads but could find no solution. The exact error is :

IO Error: [Errno 2] No such file or directory: 'external/LibRawcmake/CMakeLists.txt'

The only dependency for the wrapper is numpy, which I successfully installed. I would like to know how to fix this. Quite new to Python, so any information would help.

User letmaik was able to help me with this. It turned out that the error was caused by my version of pip being too old. The command "python -m pip install -U pip" did not work to upgrade pip; "easy_install -U pip" was required. This allowed rawpy to be installed successfully.

By separate communication the OP said that the installed pip version is 7.1.0 and Python 2.7. The solution was to update pip to a version >= 8. The underlying issue is related to SOABI tag handling in Python 2, particularly when creating the binary wheels with pip >= 8 and trying to load them in pip < 8. pip 7 didn't identify the available binary wheels as compatible and instead downloaded the source distribution which then failed to install spectacularly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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