I am getting the following errors when run pip install livewires:
Collecting livewires
Using cached LiveWires-2.1.tar.gz
Collecting pygame (from livewires)
Could not find a version that satisfies the requirement pygame (from livewires) (from versions: )
No matching distribution found for pygame (from livewires)
I am in Mac with python 2.7.10, and this package can not be installed through my editor (Pycharm) neither.
Using cached LiveWires-2.1.tar.gz
Maybe there is a problem with the cached version. Try using the --no-cache-dir flag to force a fresh download.
pip install --no-cache-dir livewires
Related
Error: subprocess-exited-with -error, python setup.py egg_info did not run successfully.
I know that there are some similar questions. But the error still exist after trying those solution. I want to install a model called midi-ddsp and it shows an error.
Requirement already satisfied: music21 in ./Library/Python/3.8/lib/python/site-packages (from midi-ddsp) (7.3.3)
Requirement already satisfied: pandas in ./Library/Python/3.8/lib/python/site-packages (from midi-ddsp) (1.3.3)
Requirement already satisfied: pretty-midi in ./Library/Python/3.8/lib/python/site-packages (from midi-ddsp) (0.2.9)
Requirement already satisfied: mir-eval in ./Library/Python/3.8/lib/python/site-packages (from ddsp==3.2.0->midi-ddsp) (0.7)
Requirement already satisfied: tensorflow-addons in ./Library/Python/3.8/lib/python/site-packages (from ddsp==3.2.0->midi-ddsp) (0.17.1)
Requirement already satisfied: cloudml-hypertune in ./Library/Python/3.8/lib/python/site-packages (from ddsp==3.2.0->midi-ddsp) (0.1.0.dev6)
Collecting crepe>=0.0.11
Using cached crepe-0.0.12.tar.gz (15 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
Because the codes are too long, if I need to paste more, please tell me!
I've tried to upgrade pip, pip3 install midi-ddsp --use-deprecated=legacy-resolver, pip3 install --upgrade setuptools, easy_install -U setuptools and so on. But neither of them could work. Hope someone could help me, thanks!
I tried these from the answers of another question on StackOverflow but didn't work for me
pip install --user pygames
python -m pip install -u pygame --user
(How to solve the "pip install pygame" issue?)
But in the end, I tried along with --pre. This worked
pip install pygame --pre
Output:
PS C:\\Windows\\system32\> pip install pygame --pre
Collecting pygame
Using cached pygame-2.1.3.dev8-cp311-cp311-win_amd64.whl (10.6 MB)
Installing collected packages: pygame
Successfully installed pygame-2.1.3.dev8
I think --pre is used for
The pip install command also supports a --pre flag that enables installation of pre-releases and development releases.
I had the same problem when I tried to import an old requirements.txt.
scipy==1.5.1
I checked it from Pypi, changed to 1.9.1 in requirements.txt,
and it works!
I had a similar problem on updating systemd-python with
python3.8 -m pip install --upgrade systemd-python
The error message began with these words:
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
The lines following were quite telling:
Cannot find libsystemd or libsystemd-journal:
Package libsystemd was not found in the pkg-config search path.
Even though the package libsystemd was installed, Python did not find it. I have learnt that often you can solve this "not finding an installed package" by installing the corresponding dev package; in this case it is libsystemd-dev.
After installing the libsystemd-dev the command python3.8 -m pip install --upgrade systemd-python ran smoothly.
I got this exact same error when trying to run:
pip install dotenv
After a lot of hunting around, I realised I got the package name wrong. The correct command was:
pip install python-dotenv
Maybe try googling "pip your-package-name" to find the PyPi page for your package and double check you are using the correct name? It is annoying that the pip error message was not more descriptive.
I'm having trouble installing pyautogui, it gives me the following error. By the way, I'm new to python so if I'm not understanding something please explain it to me.
Thanks in advance!
pip install pyautogui
Collecting pyautogui
Using cached https://files.pythonhosted.org/packages/f0/76/7a0ec1013bc3559b7438f6773cba05ffaec600b8989be2d621a144e39b50/PyAutoGUI-0.9.53.tar.gz
Collecting pymsgbox (from pyautogui)
Collecting PyTweening>=1.0.1 (from pyautogui)
Using cached https://files.pythonhosted.org/packages/e9/4f/acb6a2d95260a4377885e40c167fd5df587630696a6a7934675f86aebb06/pytweening-1.0.4.tar.gz
Collecting pyscreeze>=0.1.21 (from pyautogui)
Collecting pygetwindow>=0.0.5 (from pyautogui)
Using cached https://files.pythonhosted.org/packages/e1/70/c7a4f46dbf06048c6d57d9489b8e0f9c4c3d36b7479f03c5ca97eaa2541d/PyGetWindow-0.0.9.tar.gz
Collecting mouseinfo (from pyautogui)
Using cached https://files.pythonhosted.org/packages/28/fa/b2ba8229b9381e8f6381c1dcae6f4159a7f72349e414ed19cfbbd1817173/MouseInfo-0.1.3.tar.gz
Collecting Pillow>=6.2.1; python_version == "3.8" (from pyscreeze>=0.1.21->pyautogui)
Using cached https://files.pythonhosted.org/packages/8f/59/97618ad67fc0639ed588c60cfe9d91417f7bae8c87bbe7c7784b0ffdb9f1/Pillow-9.2.0-cp38-cp38-win_amd64.whl
Collecting pyrect (from pygetwindow>=0.0.5->pyautogui)
Using cached https://files.pythonhosted.org/packages/cb/04/2ba023d5f771b645f7be0c281cdacdcd939fe13d1deb331fc5ed1a6b3a98/PyRect-0.2.0.tar.gz
Collecting pyperclip (from mouseinfo->pyautogui)
Using cached https://files.pythonhosted.org/packages/a7/2c/4c64579f847bd5d539803c8b909e54ba087a79d01bb3aba433a95879a6c5/pyperclip-1.8.2.tar.gz
Installing collected packages: pymsgbox, PyTweening, Pillow, pyscreeze, pyrect, pygetwindow, pyperclip, mouseinfo, pyautogui
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\program files\python38\Lib\site-packages\pymsgbox'
Consider using the --user option or check the permissions.
WARNING: You are using pip version 19.2.3, however version 22.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
The error actually gives you your answer by their recommendation to use the --user option. I run into this as well, if you want to install something without admin privileges. Just add the --user flag to the end of your pip command. This will limit the installation to the current user and not require administrator privileges.
Try this:
pip install pyautogui --user
The second error also gives you the answer of what to do.
pip install --upgrade pip
or, if needed...
pip install --upgrade pip --user
I have already installed pipenv using,
pip install pipenv on the directory which was installed successfully. But
pipenv install Django==2.1 does not seem to work. In fact, no command is getting executed using pipenv.
pip install pipenv
Collecting pipenv
Downloading https://files.pythonhosted.org/packages/13/b4/3ffa55f77161cff9a5220f162670f7c5eb00df52e00939e203f601b0f579/pipenv-2018.11.26-py3-none-any.whl (5.2MB)
100% |████████████████████████████████| 5.2MB 5.5MB/s
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (40.9.0)
Collecting virtualenv-clone>=0.2.5 (from pipenv)
Downloading https://files.pythonhosted.org/packages/ba/f8/50c2b7dbc99e05fce5e5b9d9a31f37c988c99acd4e8dedd720b7b8d4011d/virtualenv_clone-0.5.3-py2.py3-none-any.whl
Requirement already satisfied: certifi in /usr/local/lib/python3.6/dist-packages (from pipenv) (2019.3.9)
Requirement already satisfied: pip>=9.0.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (19.0.3)
Collecting virtualenv (from pipenv)
Downloading https://files.pythonhosted.org/packages/33/5d/314c760d4204f64e4a968275182b7751bd5c3249094757b39ba987dcfb5a/virtualenv-16.4.3-py2.py3-none-any.whl (2.0MB)
100% |████████████████████████████████| 2.0MB 17.1MB/s
Installing collected packages: virtualenv-clone, virtualenv, pipenv
Successfully installed pipenv-2018.11.26 virtualenv-16.4.3 virtualenv-clone-0.5.3
pipenv install Django==2.1
File "", line 1
pipenv install Django==2.1
^
SyntaxError: invalid syntax
*
Anything on Google Colab suggestions would be very helpful!
*
pip is a shell command. I assume Google Colab has made pip available as a special command(*) (without the % syntax), but that doesn't mean any other shell command works as such. That is why you get a SyntaxError: it is not recognised as normal Python syntax.
You can work around it by using !pipenv install 'Django==2.1' (the single quotes may not be necessary, but the exclamation work is).
I doubt, however, that you really need a virtual environment in the first place. This is not on your regular machine, where you may want to keep dependencies apart. Instead, just start a new notebook for a new project, and install Django as normal: pip install Django. I wouldn't bother with pipenv and virtual environments inside notebooks. There doesn't seem to be any use for it.
(*) Try, for example, pip?, and note the help lists its usage with the %pip syntax. I assume that, if it's not ambiguous, Colab will use %pip when called as pip. The same works for, for example, ls instead of %ls.
Trying to install pyad package for Python 2.7.13 (windows x64) using pip.
There is pywin32 package among requirements, so we get an error:
C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)
Then I install pypiwin32 which used to work in such cases:
C:\Windows\system32>pip install pypiwin32
Collecting pypiwin32
Using cached pypiwin32-219-cp27-none-win32.whl
Installing collected packages: pypiwin32
Successfully installed pypiwin32-219
But after this I still can't install pyad with the same error as above, like pypiwin32 has never been installed:
C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)
Folder C:\Python27\Lib\site-packages\pywin32_system32 exists, the pypiwin32 package seems to be installed.
Any ideas to fix this?
You are facing pywin32 installation problem, which is a binary wheel.
You can download binary wheels of pywin32 here. You install it with
pip install pywin32-221-cp27-cp27m-win32.whl
if it is the file you have downloaded
Select the correct version with respect to your installation (Python version and 32/64 bit Python version)
You can have detailed instructions here
pyad is declaring it needs "the pywin32 distribution package" in order to be installed. Distribution packages, i.e. something from PyPI that you can pip install, differ from Python packages, folders with an __init__.py that can be imported. The naming is confusing.
So, because it's not installed, it tries to install pywin32, but it can't find a distribution that matches your Python environment: Python 2.7 on Windows x64. On PyPI it appears like the only distributions are for Python 3.6: https://pypi.python.org/pypi/pypiwin32/220
I wanna install PyQt5 on windows by pip but rise me this error:
pip install PyQt5
Collecting PyQt5
Using cached PyQt5-5.7.1-5.7.1-cp34.cp35.cp36.cp37-none-win32.whl
Collecting sip>=4.19 (from PyQt5)
Could not find a version that satisfies the requirement sip>=4.19 (from PyQt5)
(from versions: )
No matching distribution found for sip>=4.19 (from PyQt5)
and when i try to install sip via pip raise me this error:
Could not find a version that satisfies the requirement SIP (from versions: )
No matching distribution found for SIP
what can i do?
You can use pip to install SIP and then pyQt5.
pip install SIP
But in order to be able to do that you need python 3.5 and its better to use virtualenv to not mess with core installation/change version.
Then you can try installing PyQt5.
pip install pyqt5
Make sure you have the latest python installed (or at least v3.5)
Make sure your new python install is being used from your path instead of the old one (python --version)
pip3 install PyQt5 should then successfully install SIP and PyQt5 for you