Python PIP causes error - python-3.x

Hey guys i've got a problem with installing PyOpenGL via pip. It says that, there's an error during running some setup.py... but idk what that means... I have tried to install pyinstaller as well... but the same issue occurs. I'm using python 3.6.3... It worked on 3.5, but then either cx_freeze or pyinstaller doesn't work at all...
It only happens everytime when pip has to use some setup.py

Alright, I found the solution... In Python36-32\Scripts directory I opened console and passed into it the following command:
easy_install pyopengl
And this hopefully worked. I'll leave this post in case if somebody else would have the same problem.
Happy coding!

Related

Python installing package with pip failed

I got this error message when I was installing python-binance.
Error message is in the link below please check
https://docs.google.com/document/d/1VE0Ux_ji9RoK0NIrPD3BSbs60sTaxThk3boxsvh051c/edit
Anyone knows how to fix it?
You're trying to install email from PyPI which is a very old outdated Python2-only package.
email is now a module in the stdlib. You don't need to install it, it must always be available. Just import and use.
You might have outdated setuptools, try:
pip install --upgrade setuptools
Then continue trying to install the module you want.
Usually these kinds of problems can be solved by googling the error: in this case you should try searching with "python setup.py egg_info".
Also, try to give a more descriptive title for your problems in the future. "Python installing package with pip failed" is too broad.
Thanks guys I already figured out what error message means, I downloaded twisted from third party website and installed it and it worked.

pip3 installs python modules to python 2.7 by default

Newbie here, trying to import selenium. First time importing modules (outside of built-ins). My issue is whenever I pip3 install selenium it installs correctly to python 2.7.16 rather than 3.7.3. I found this out by running python3 in the terminal with no success importing selenium however just running the regular python can import selenium.
More info:
I'm on macOS Catalina 10.15.4
I tried python3 -m pip install selenium based on a stack overflow response. When doing this, I receive the following error: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.7'
Consider using the `--user` option or check the permissions. Not sure what this means but explanation greatly appreciated
Running which python returns /usr/bin/python
Running which python3 returns /usr/bin/python3
In Finder, /Library/Python only has the folder "2.7", doesn't have a "3.7"
Let me know if there is anything else I can do or any more information you need from me. Thanks in advance!
After scouring the internet I managed to put 2 answers together for the issue I was having. If you have a similar issue, use the command python3 -m pip install --user (your module) and it works like a charm. For more information, visit this GitHub issue which is where I got most of my answers to see if you need something similar. Hope this helps someone!
Try searching how to change default python version to python3. I would recommend looking at this answer. The reason is that by default pip installs all packages to python2.7, the default system version. If you are using a virtualenv try initializing you virtualenv with python3 -m venv venv and then try pip install 'ModuleName'.

How to install audiodiff?

So i am trying to install audiodiff via anaconda prompt. The error i keep getting is related to mutagen. But i have installed mutagenwrapper and mutagen and its their installation that i think is causing the issue has anyone else had that issue and solved it?
The error I get is command "python setup.py egg info" failed with error code 1 in C:\Users\TEST\AppData\Local\Temp\pip-install-0rsg6wwr\mutagen\
However if i try to install mutagen it just says requirement already satisfied.
It is only supported in python 2.7

Pip is not working and I can't seem to find how to fix it

I haven't been able to find anything useful as far as fixing this and I've only just started learning python.
Try easy_install pip this will install pip.
I would advise installing python using anaconda to avoid such issues

python 'pip' has no attribute 'main'

I have been looking all over for a solution. I found one question asking something similar to this, but they were doing it inside of python(which I also tried) and the answers didn't work. So please don't be mad; nothing seems to work!
I've been having a lot of troubles with pip. I am on windows 10, python 3.6. First it wouldn't let me install scipy no matter what I did, so I uninstalled it and reinstalled. get-pip.py wouldn't work, so I reinstalled python and had it put pip in my path. Now no matter what I try I get:
ImportError: module 'pip' has no attribute 'main'
Pip is in my path, just like it used to be. I was going to uninstall it again, but because it has no 'main' pip uninstall pip also says it does not have 'main'. I've tried to fix the path, reinstall pip, reinstall python, use easy_install instead, and I am stuck. I have no idea how to uninstall pip at this point. Sorry if this is basic!
I am so lost. I would really appreciate some help! This is a great community! Thanks!! Let me know if you need more information
Check the Scripts directory in your virtual environment home directory. Is there a pip.exe in Scripts? It can be in the path but not installed in the environment itself. You can just copy one from another env Scripts, but make sure it's the right version of pip. DRY

Resources