Ubuntu pip cannot install modules - python

Hello guys ive been facing a problem with my ubuntu server.
Sooo i installed mysql-server and things like that so i can create database.
Then I installed python and pip, flask installation went correctly and when im trying to install it again it says requirement already satisfied so thats cool
BUT
When im trying to install mysql-connector or mysql-connecto-python installaion is looping you cann see it
I can install mysql-connector as many times as i want and it doesnt install.
What can I do in this situation? Anybody was facing this kind of problem?

Related

Cloud Resume Challenge - ' Build Failed / Error: PythonPipBuilder:ResolveDependencies - pip executable not found in your python environment'

I would appreciate any guidance here. I have been stuck on this issue for the last week, trying to find out how to resolve this error.
I am trying to run 'SAM Build' but getting an error saying I don't have the pip executable folder in my python environment. I've been trying to figure this out on Stack, but no luck.
I'm guessing the issue is related to having two different versions of Python installed on my EC2 instance. If anyone can advise here, it would be greatly appreciated.
I've been trying to uninstall/reinstall pip and python. It claims my python version is 2.7, though I have 3.9 installed.
You're missing pip to resolve dependencies.
Try to add pip with:
sudo apt-get install python3-pip

Pip upgrading arcgis completely broke pip

Overview: While running Python 3.6, after upgrading my arcgis package, scripts no longer recognizes many packages and pip itself completely broke, making it impossible to upgrade or uninstall any packages.
Background Info: Fairly recently, when I run a particular program of mine, I have been seeing a deprecation message connected to the arcgis package. So, I upgraded the arcgis package to see if it fixed it. It seemed to install correctly but then when trying to run my program, I'd get errors for other packages, like folium or requests. I then tried upgrading Python and initially, it worked. I used pip to install pandas and requests but right after I installed arcgis, everything broke again. So then when trying to uninstall arcgis (or do anything else pip related) I get this error:
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\myuserpath\AppData\Local\.certifi'
I've uninstalled Python but it doesn't change anything. pip install any package results in this error. I tried reverting back to Python 3.6 but the installer wasn't available from the python site, only 3.9.
What could have been changed or affected by this arcgis installation?
There seems to be two primary issues you're dealing with. The first is as #BoarGules mentioned, that arcgis does a 'full' install with all its dependencies and that could be causing problems. Secondly, the newest requests library seems to have some issues as well, at least from what I've experienced. So let's get started fixing all this.
There's probably a few different ways to fix this, so this is just one of the many. First, uninstall python and delete the python folder from your AppData folder - in your case, it would be the Python 3.9 folder. Re-install Python and check your site-packages folder making sure it only contains the default Python packages. Open up a command prompt and do a pip install of something basic, like pandas. If that goes well, then the first hurdle is over.
When it comes time to install arcgis again, you'll want to use this instead
pip install arcgis --no-deps
this will prevent the doubling up of any of the packages or whatever seems to be happening. You will need to then also install these:
pip install ujson
pip install requests_ntlm
Next, when you come to installing requests, use an older library, like this one:
pip install requests==2.20.0
That should get things back up and running.

Python is installed many times but can't figure out why PIP install isn't supporting?

I see the below:
C:\Users\natan12\Documents\My-Work-Files\Python-Learning\New>python -m site --user-site
C:\Users\natan12\AppData\Roaming\Python\Python38\site-packages
The first one above is the directly connected to pycharm where i am working and trying to install PIP packages but I see that all the packages and python are being installed in another folder. Probably, that goes back to days when i was trying to play with it.
My aim is to install and work in the same folder as below:
C:\Users\natan12\Documents\My-Work-Files\Python-Learning\New>python -m site --user-site
But no matter what i install or try to run probably gets into the other place instead of my working directory so i am not sure how to sort out this mess.
Can someone please help me to sort this out?
Did you try installing 'pip' globally? That worked for me when trying to use pip install while working with Django. Hope this works for you too!

Scrapy installation fails when collecting Twisted / Centos 7

So guys, I just made a fresh installation of Python 3.6 on Centos 7. Created a virtual environment, when I run pip install scrapy, it starts collecting few other dependencies, but fails when it comes to Twisted without returning any error at all. It just freezes and nothing ever happens.
Collecting Twisted>=13.1.0 (from scrapy)
Using cached Twisted-17.9.0.tar.bz2
I've been looking into this error since yesterday, looks like error could be related to Twisted's tar.bz2 extension. I'm new to linux environment and Python, have successfully installed Scrapy on Windows a few months ago using the same pip install scrapy method. But right now, I have no clue how to proceed.
That's the guide I followed to install Python on Centos7.
https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-centos-7
Could someone please point me in the right direction? Could it really be related to Twisted's compression method? If so, how can I find a way around this issue?
Huge thanks in advance.
Couldn't figure out how to get it extract bz2, so ended up installing Twisted and its dependencies manually. For future reference;
Download latest Twisted here
Extract the file
cd to twisted/src/Twisted.egg-info
Run pip install -r top_level.txt. This will install Twisted's dependencies.
python setup.py install
That's it. You can now run pip install scrapy.

Pip fails to install packages

I'm attempting for several hours to get the package installed, but i really got stuck and i'm so desperate right now.I tried everything here and on the web but, nothin works! i tried first using pycharm to install SciTools and then via terminal but both give me the same error as here you can see(i have mac):
Could not find a version that satisfies the requirement SciTools==0.08 (from versions: )
No matching distribution found for SciTools==0.8
I believe you want to install SciTools==0.8 not version 0.08
I can't make it work either. Maybe you can try to manually install the packages as described in the installation page of SciTools's Google Code Archive.
It would be sudo apt-get install python-scitools on Ubuntu for example.

Categories

Resources