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

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

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

Error while installing pip using get-pip.py with Python2.7.10

I am using Python2.7.10 on a Windows10 machine, and wish to install pip.
I followed the instructions from here to get the get-pip.py file, but when I try to run it I get the following error:
Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence
I found that if I install an older version of pip (for Python2.6) then the installation is successful, and I can use pip regularly. If I try to use this older version (9.0.3) to install the newer one (18.0) then I get the same error message.
The complete log of the installation is below (1). If I manually install setuptools then I get the same message when it tries to download the next package:
Any assistance with installing the newer version will be much appreciated :-)
1)
C:\Python27\Lib\site-packages>python get-pip.py
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/ff/f4/385715ccc461885f3cedf57a41ae3c12b5fec3f35cce4c8706b1a112a133/setuptools-40.0.0-py2.py3-none-any.whl (567kB)
1% |Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence
Update: after installing several packages manually I was able to install the new pip version. It obviously didn't solve the problem, and pip is still not working. When trying to use it, the same error message appears at every attempted download. See log at (2). I double checked the address, and it appears to be correct.
2)
Collecting Requests
Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
11% |Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence
Thanks
tl;qr - add the quiet flag (-q) to your command
While trying to debug I redirected the output to a file:
python -m pip install requests > .\temp.txt
Surprisingly, everything suddenly worked!
It appears there is a known bug (Thanks Matan M) while displaying the progress bar to the console. Basically, any solution that would avoid writing it would work.
Here are some options:
Use the -q flag
Turn off the progress bar using --progress-bar off
Redirect to a temp file
:-)
Hi check if you added the relevant python paths to the PATH.
pip install <package> -q **or**
--progress-bar off

Having trouble with PyEnchant installation on El Capitan

It's possible I should just open this is an issue on the Enchant package, but it could definitely be something I'm missing too. I'm using El Capitan and python 2.7. I tried a few things:
pip install penchant seems to successfully install pyenchant-1.6.6, but when I try to import enchant I get the error ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI. I followed the advice here and upgraded pip.
I followed the advice here and started with brew install enchant, but that gave the error
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "glib--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/7b5fd0d2e6554e9b770729fddacaa2d648327644/glib-hardcoded-paths.diff
I also downloaded the wheel here (second-to-last link) and tried to pip install it, but got the error that it is not a supported wheel on this platform.
Thoughts? Thanks.

Installing MySQL-python with easy-install failed

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.

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.

Categories