小编Ron*_*Ron的帖子

安装 python 轮文件“*.whl”会导致“...在此平台上不受支持的轮”

我在 Mac OSX 10.9.5 上使用 Python 2.7.10 运行 Anaconda。我正在尝试安装一个名为“Fiona”的软件包。

\n\n

我进入了:

\n\n
sudo pip install Fiona-1.6.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.ma\xe2\x80\x8c\xe2\x80\x8bcosx_10_10_intel.macosx_10_10_x86_64.whl \n
Run Code Online (Sandbox Code Playgroud)\n\n

结果

\n\n
The directory \'/Users/ronaldbjork/Library/Caches/pip/http\' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo\'s -H flag. Fiona-1.6.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.mac\xe2\x80\x8c\xe2\x80\x8bosx_10_10_intel.macosx_10_10_x86_64.whl **is not a supported wheel on this platform.**\n
Run Code Online (Sandbox Code Playgroud)\n\n

建议使用 -H:

\n\n

所以我输入:

\n\n
sudo -H pip install …
Run Code Online (Sandbox Code Playgroud)

python macos python-wheel

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

macos ×1

python ×1

python-wheel ×1