Installing MySQL-python with easy-install failed - python

I'm struggling with installing MySQL-python on my Centos VPS. I have "main" Python 2.6 (one that came automatically with CentOS) and another one I installed after (2.7). So I used this command:
easy_install-2.7 MySQL-python
But it reproduces following error:
Searching for MySQL-python
Reading https://pypi.python.org/simple/MySQL-python/
Download error on https://pypi.python.org/simple/MySQL-python/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'MySQL-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or download links found for MySQL-python
error: Could not find suitable distribution for Requirement.parse('MySQL-python')
Thanks for reading my question and possibly trying to help!

Perhaps you're using an old version of easy_install, that may be the root of problem. You can follow instructions from distribute doc package, and than install pip. Since you have installed pip you can install MySQL-pythoneasily.

Maybe try use some sentence,which include mysqldb.

Related

RHEL 8 - Unable to complete pyPDF2 offline installation due to typing_extensions

I've been stuck with this problem.
I work on a UNIX RHEL8 server which did not allow to access internet.
All required packages and modules I able to install expect this pyPDF2 module due to typing_extensions
RHEL8 Python 3.6.8
Pip 9.0.3 installed but not able to use due to no internet access
PyPDF2 2.10.0 try to install using python setup.py build && python setup.py install
Installed /usr/local/lib/python3.6/site-packages/PyPDF2-2.10.0-py3.6.egg
Processing dependencies for PyPDF2==2.10.0
Searching for typing_extensions
Reading https://pypi.org/simple/typing_extensions/
Download error on https://pypi.org/simple/typing_extensions/: [Errno -2] Name or service not known -- Some packages may not be found!
Reading https://pypi.org/simple/typing-extensions/
Download error on https://pypi.org/simple/typing-extensions/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldnt find index page for 'typing_extensions' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for typing_extensions
pip install method unable to be use due to no internet access
Please help me. Thank you
You need to install the package:
pip install typing-extensions
In newer Python versions that package is not required.
You can also edit the source of PyPDF2 to remove all imports of it and Literal.
You can download whl file from https://pypi.org/ for the package.
And if pip is installed it can be easily installed using :
pip install wheel_file.whl

How to install python pip in aarch64/armv8 platform? [duplicate]

This question already has answers here:
Installing pip using easy_install
(6 answers)
Closed 4 years ago.
I have a board which is powered by Linux kernel. The board is of aarch64/armv8 architecture. The board does not have apt-get but has easy_install. I tried to install using easy_install, I got the following error,
root#armboard:~# easy3_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
root#armboard:~# easy3_install --version
setuptools 36.2.7 from /usr/lib/python3.5/site-packages (Python 3.5)
Please suggests ways to install pip in this platform.
If it is possible with easy_install what steps should I follow to get ride of this error?
If not shall I get cross compiled pip binaries for this architecture or any Yocto build is available?
If easy_install pip doesnt work, you can try to build the source.
https://archlinuxarm.org/packages/aarch64/python-pip

Installation error with easy_install

When I run the following:
PS C:\Python27\ArcGIS10.2\Scripts> .\easy_install python-nvd3
I receive the following error:
Searching for python-nvd3
Reading https://pypi.python.org/simple/python-nvd3/
Download error on https://pypi.python.org/simple/python-nvd3/: timed out -- Some packages may not be found!
Couldn't find index page for 'python-nvd3' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for python-nvd3
error: Could not find suitable distribution for Requirement.parse('python-nvd3')
I'm following the installation instructions exactly as they're listed in the library's website.
Please note: I know many would advise me to use pip instead of easy_install. Unfortunately, pip doesn't appear to be an option on my work PC. I receive the following error:
Connection to pypi.python.org timed out.

Using pip and easy_install in virtualenv on Windows

I was trying to install a few packages in a virtual environment using pip. I was getting the error:
Downloading/unpacking pymongo
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pymongo
No distributions at all found for pymongo
I found that some say a workaround is downgrading your pip. I downloaded and installed pip 1.2.1 Now I get the error:
(env1)PS C:\dev\virtualenvs> pip install bottle
Downloading/unpacking bottle
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement bottle
No distributions at all found for bottle
The log says:
urlopen error [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions>
How do I correctly use virtualenvs on windows?
EDIT: I am able to use pip when not in my virtualenv.
In this case the operating system should not matter. Also this should not be a question about virtualenv (as suggested in your title). pip just cannot access the remote end that it would like to access. Does it take some time for the error message to appear (is this a timeout issue)? If yes, then this is a networking issue, maybe triggered by a firewall. You should check this first.

pip install treq failing

According to http://treq.readthedocs.org/en/latest/, treq can be installed using pip, however it is failing. I can install treq using the tar file, but I am wondering why this is failing since http://pypi.python.org/simple/treq/ has 0.1.0 and 0.2.0.
$ sudo pip install treq
Downloading/unpacking treq
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement treq
No distributions at all found for treq
Storing complete log in <cut>.pip/pip.log
$ pip search treq
megrok.strictrequire - Checks that all grokked "view-like" components
require a permission.
streql - Constant-time string comparison
trequests - A Tornado async HTTP/HTTPS client adaptor for
python-requests
treq - A requests-like API built on top of twisted.web's
Agent
repoze.bfg.restrequest - a REST aware Request for implementing RESTful
applications with repoze.bfg
$
Just tried to install from tarfile and it can't find twisted either so wondering if there's basic issue with pip...
$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
<snip>
Extracting treq-0.2.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding treq 0.2.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/treq-0.2.0-py2.7.egg
Processing dependencies for treq==0.2.0
Searching for Twisted>=12.1.0
Reading http://pypi.python.org/simple/Twisted/
Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages may not be found!
Reading http://pypi.python.org/simple/Twisted/
Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages may not be found!
Couldn't find index page for 'Twisted' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error on http://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for Twisted>=12.1.0
error: Could not find suitable distribution for Requirement.parse('Twisted>=12.1.0')
$
The error message reads:
Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages may not be found!
Did you check for a firewall blocking access to PyPI?

Categories