question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation not working properly on Windows with pip==20.0.1

See original GitHub issue

Installation with pip==19.3.1 works fine.

PS C:\Users\C0nsultant> python -V
	Python 3.7.4
PS C:\Users\C0nsultant> pip freeze
PS C:\Users\C0nsultant> # No packages installed
PS C:\Users\C0nsultant> python -m pip install --upgrade pip==19.3.1
PS C:\Users\C0nsultant> pip -V
	pip 19.3.1 from c:\users\C0nsultant\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)
PS C:\Users\C0nsultant> pip install https://files.pythonhosted.org/packages/b8/de/24e4035f06540ebb4e9993238ede787063875b003e79c537511d32a74d29/SoundFile-0.10.3.post1-py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.cp36.pp27.pp32.pp33-none-win_amd64.whl
	Collecting SoundFile==0.10.3.post1
		Using cached https://files.pythonhosted.org/packages/b8/d/24e4035f06540ebb4e9993238ede787063875b003e79c537511d32a74d29/SoundFile-0.10.3.post1-py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.cp36.pp27.pp32.pp33-none-win_amd64.whl
	Collecting cffi>=1.0
		Using cached https://files.pythonhosted.org/packages/71/71/6011c17e8a523be0be20149ed7ba7e8671db7ec6fc52868e4f9a49d527f8/cffi-1.13.2-cp37-cp37m-win_amd64.whl
	Processing c:\users\C0nsultant\appdata\local\pip\cache\wheels\f2\9a\90\de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511\pycparser-2.19-py2.py3-none-any.whl
	Installing collected packages: pycparser, cffi, SoundFile
	Successfully installed SoundFile-0.10.3.post1 cffi-1.13.2 pycparser-2.19
	WARNING: You are using pip version 19.3.1; however, version 20.0.1 is available.
	You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\C0nsultant> python -m soundfile
PS C:\Users\C0nsultant> $?
	True

When upgrading to pip==20.0.1, installation of the windows-specific package fails.

PS C:\Users\C0nsultant> pip uninstall -y cffi pycparser SoundFile
	Uninstalling cffi-1.13.2:
  		Successfully uninstalled cffi-1.13.2
	Uninstalling pycparser-2.19:
  		Successfully uninstalled pycparser-2.19
	Uninstalling SoundFile-0.10.3.post1:
  		Successfully uninstalled SoundFile-0.10.3.post1
PS C:\Users\C0nsultant> python -m pip install --upgrade pip==20.0.1
	Collecting pip==20.0.1
  		Using cached https://files.pythonhosted.org/packages/57/36/67f809c135c17ec9b8276466cc57f35b98c240f55c780689ea29fa32f512/pip-20.0.1-py2.py3-none-any.whl
	Installing collected packages: pip
  		Found existing installation: pip 19.3.1
    		Uninstalling pip-19.3.1:
      			Successfully uninstalled pip-19.3.1
	Successfully installed pip-20.0.1
PS C:\Users\C0nsultant> pip -V
	pip 20.0.1 from c:\users\C0nsultant\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)
PS C:\Users\C0nsultant> pip install https://files.pythonhosted.org/packages/b8/de/24e4035f06540ebb4e9993238ede787063875b003e79c537511d32a74d29/SoundFile-0.10.3.post1-py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.cp36.pp27.pp32.pp33-none-win_amd64.whl
	ERROR: SoundFile-0.10.3.post1-py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.cp36.pp27.pp32.pp33-none-win_amd64.whl is not a supported wheel on this platform.
PS C:\Users\C0nsultant> python -m soundfile
	C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\python.exe: No module named soundfile
PS C:\Users\C0nsultant> $?
	False
PS C:\Users\C0nsultant> # Installation works, but does not pull a compatible version
PS C:\Users\C0nsultant> pip install soundfile
	Collecting soundfile
  		Downloading SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
	Collecting cffi>=1.0
  		Using cached cffi-1.13.2-cp37-cp37m-win_amd64.whl (175 kB)
	Processing c:\users\C0nsultant\appdata\local\pip\cache\wheels\f2\9a\90\de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511\pycparser-2.19-py2.py3-none-any.whl
	Installing collected packages: pycparser, cffi, soundfile
	Successfully installed cffi-1.13.2 pycparser-2.19 soundfile-0.10.3.post1
PS C:\Users\C0nsultant> python -m soundfile
	Traceback (most recent call last):
  		File "C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\lib\site-packages\soundfile.py", line 142, in <module>
    		raise OSError('sndfile library not found')
		OSError: sndfile library not found

	During handling of the above exception, another exception occurred:

	Traceback (most recent call last):
  		File "C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    		"__main__", mod_spec)
  		File "C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    		exec(code, run_globals)
  		File "C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\lib\site-packages\soundfile.py", line 163, in <module>
    		_path, '_soundfile_data', _libname))
	OSError: cannot load library 'C:\Users\C0nsultant\AppData\Local\Programs\Python\Python37\lib\site-packages\_soundfile_data\libsndfile64bit.dll': error 0x7e
PS C:\Users\C0nsultant> $?
	False

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
orhnacommented, Sep 13, 2020

How did you install soundfile?

conda install -c conda-forge pysoundfile

With this command

0reactions
bastibecommented, Dec 5, 2020

Oh no, please don’t!

PySoundFile is a severely outdated, old version of soundfile that has been deprecated years ago. It will be removed, soon. Please use soundfile, not PySoundFile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation not working properly on Windows with pip==20.0.1
This problem arises when using python 3.7. To solve this, Uninstall soundfile using "pip uninstall soundfile". Then, install pysoundfile using " ...
Read more >
How do I fix "pip"? - Stack Overflow
First check whether pip installed or not , in command prompt try pip --version , you should get something like this - pip...
Read more >
Python: Fix 'pip is not recognized' | Easy - YouTube
trying to install a new PyPi package, but are unable to get pip to work ? Does python work ? Well, this video...
Read more >
Installation - pip documentation v22.3.1
The zip application is currently experimental. We test that pip runs correctly in this form, but it is possible that there could be...
Read more >
pip-tools - PyPI
pip -tools = pip-compile + pip-sync. A set of command line tools to help you keep your pip-based packages fresh, even when you've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found