Can't install python-snappy wheel in Pycharm

谁说胖子不能爱 提交于 2021-01-07 01:20:01

问题


I have a question here, and then I have followed this answer https://stackoverflow.com/a/43756412/12375559 to download the file and installed from my windows prompt, and it seems the python-snappy has been installed

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.

But when I tried to run my script in Pycharm it's still not working, I still got the error 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']

Then I tried the process to install the wheel inside Pycharm terminal, but it doesn't work:

(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.

I tried different directory, it can't install the wheel, why I installed it from my local prompt but in Pycharm, it still indicates that the package 'python-snappy' in not installed? Am I missing something? Please help me.....


回答1:


Using the full path to the correct Python interpreter does the job:

\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


来源:https://stackoverflow.com/questions/65109444/cant-install-python-snappy-wheel-in-pycharm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!