无法在 Pycharm 中安装 python-snappy wheel
Can't install python-snappy wheel in Pycharm
我有一个问题 , and then I have followed this answer 下载文件并从我的 windows 提示安装,似乎 python-snappy
已经安装
C:\Users\xxxx\IdeaProjects\xxxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
Processing c:\users\xxxxxx\ideaprojects\xxxxxx\venv\python_snappy-0.5.4-cp38-cp38-win32.whl
Installing collected packages: python-snappy
Successfully installed python-snappy-0.5.4
WARNING: You are using pip version 20.2.2; however, version 20.3 is available.
You should consider upgrading via the 'c:\users\xxxxxx\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip' command.
但是当我尝试 运行 我在 Pycharm 中的脚本时,它仍然无法正常工作,我仍然收到错误 File "C:\Users\xxxx\venv\lib\site-packages\fastparquet\compression.py", line 143, in decompress_data raise RuntimeError("Decompression '%s' not available. Options: %s" % RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED']
然后我尝试了在 Pycharm 终端中安装轮子的过程,但它不起作用:
(venv) C:\Users\xxx\IdeaProjects\xxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv>python.exe -c "import distutils.util; print(distutils.util.get_platform())"
win32
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
Requirement 'python_snappy-0.5.4-cp38-cp38-win32.whl' looks like a filename, but the file does not exist
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install C:\Users\xxx\IdeaProjects\xxx\venv\Scripts\python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>activate
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install C:\Users\xxx\IdeaProjects\xxx\venv\Scripts\python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\x\IdxxeaProjects\xxx\venv\Scripts>cd ..
(venv) C:\Users\x\IdeaxxProjects\xxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
我尝试了不同的目录,它无法安装轮子,为什么我从本地提示安装它但在 Pycharm 中,它仍然显示软件包 'python-snappy' 未安装?我错过了什么吗?请帮助我.....
使用正确 Python 解释器的完整路径完成工作:
\path\to\python.exe -m pip install --upgrade pip
\path\to\python.exe -m pip install \path\to\python_snappy-0.5.4-cp38-cp38-win32.whl
我有一个问题 python-snappy
已经安装
C:\Users\xxxx\IdeaProjects\xxxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
Processing c:\users\xxxxxx\ideaprojects\xxxxxx\venv\python_snappy-0.5.4-cp38-cp38-win32.whl
Installing collected packages: python-snappy
Successfully installed python-snappy-0.5.4
WARNING: You are using pip version 20.2.2; however, version 20.3 is available.
You should consider upgrading via the 'c:\users\xxxxxx\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip' command.
但是当我尝试 运行 我在 Pycharm 中的脚本时,它仍然无法正常工作,我仍然收到错误 File "C:\Users\xxxx\venv\lib\site-packages\fastparquet\compression.py", line 143, in decompress_data raise RuntimeError("Decompression '%s' not available. Options: %s" % RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED']
然后我尝试了在 Pycharm 终端中安装轮子的过程,但它不起作用:
(venv) C:\Users\xxx\IdeaProjects\xxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv>python.exe -c "import distutils.util; print(distutils.util.get_platform())"
win32
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
Requirement 'python_snappy-0.5.4-cp38-cp38-win32.whl' looks like a filename, but the file does not exist
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install C:\Users\xxx\IdeaProjects\xxx\venv\Scripts\python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>activate
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install C:\Users\xxx\IdeaProjects\xxx\venv\Scripts\python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\xxx\IdeaProjects\xxx\venv\Scripts>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
(venv) C:\Users\x\IdxxeaProjects\xxx\venv\Scripts>cd ..
(venv) C:\Users\x\IdeaxxProjects\xxx\venv>pip install python_snappy-0.5.4-cp38-cp38-win32.whl
python_snappy-0.5.4-cp38-cp38-win32.whl is not a supported wheel on this platform.
我尝试了不同的目录,它无法安装轮子,为什么我从本地提示安装它但在 Pycharm 中,它仍然显示软件包 'python-snappy' 未安装?我错过了什么吗?请帮助我.....
使用正确 Python 解释器的完整路径完成工作:
\path\to\python.exe -m pip install --upgrade pip
\path\to\python.exe -m pip install \path\to\python_snappy-0.5.4-cp38-cp38-win32.whl