Segmentation Fault when installing using pip (python 2.7.10) - python

I am getting following error when using pip command in Windows 10 VIA cmd:
$ pip install numpy
Segmentation fault
where python
C:\Python27\python.exe
where pip
C:\Python27\Scripts\pip.exe
python --version
Python 2.7.10
python -m pip --version
pip 7.0.1 from C:\Python27\lib\site-packages (python 2.7)
Please help.
I tried reisntalling the Python. But it did not work.
But now i cannot uninstall Python giving error :
"There is a problem with this Windows Installer Pacakge..........."

Related

Pip error "No matching distribution found for perceptilabs"

So I'm trying to install Perceptilabs so I can have a GUI for TensorFlow. I'm following their install instructions, which is pip install perceptilabs. However, I keep having the error:
ERROR: Could not find a version that satisfies the requirement perceptilabs
ERROR: No matching distribution found for perceptilabs
Here's a screen shot:
Can't embed images yet, here's the link
Even when I do python -m pip install perceptilabs, py -m pip install perceptilabs, pip3 install perceptilabs, python -m pip3 install perceptilabs or py pip3 -m install perceptilabs, it still doesn't work. Even in a virtual env.
I have Python 3.8.3 and 3.9.4 installed, pip and pip3 21.0.1, Tensorflow 2.5.0-rc1, Windows 10 Pro version 20H2 x64, with an Intel Core i5-3470 CPU, 8 GB RAM.
unfortunately it's only supported on python 3.7 and 3.6 for the moment; you can see in the pypi page Requires: Python >=3.6, <3.8

How to install multiple python and pip versions on linux

I'm trying to install multiple python versions in linux, but asdf or pyenv get stuck with an error:
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
apt install libssl or apt install libssl1.0 didn't solved...
I already have version 2.7 and 3.8 by default.
Then I've stalled version 3.4 by downloading its source and building manually. If i try to create a virtual environment like python3.4 -m venv myenv, i can activate python --version shows the correct one:
$ python --version
Python 3.4.0
but pip still referenced to python 3.8:
(myenv)$ pip --version
pip 21.0.1 from ~/.local/lib/python3.8/site-packages/pip (python 3.8)
/usr/local/lib/python3.4/site-packages/ only has README file, and i can't figure out how to properly set this

Error says the running Python is 3.4, but 3.5 is installed

I am trying to update the module vpython to the most current version. I run:
pip3 install --user vpython --upgrade
in a Jupyter terminal. This gives the error:
ERROR: jupyter-server-proxy requires Python '>=3.5' but the running Python is 3.4.2
But when I run:
python3 --version
it returns:
Python 3.5.2 :: Anaconda 4.1.1 (64-bit)
Is there something going wrong with the installed Python3 kernel for Jupyter?
Change the environmental variable in your control panel just a simple conflict between python 3.4 and 3.5 this will surely solve your issue.
The issue is that you are using pip3 which is not always tied to the specified python you are trying to run. pip is a module installed with each python3 instance, so to specify it to install to a python environment, use the -m flag:
python -m pip install <module>
Where python is the python that you expect. For instance, if you want it to run against the installation that you use through python3, then you would do python3 -m pip install <module>. This makes things easy to track, since if you want to see which python you are installing to, you can use python -m pip -V. On my machine that outputs:
pip 19.3.1 from /Users/mm92400/anaconda3/lib/python3.6/site-packages/pip (python 3.6)

pip3 Fatal error in launcher: Unable to create process using '"'

Win10, x64, Anaconda Python 3.7
I have recently 'upgraded' to Python 3.7 so some of my modules are missing, for example I am trying to use pyfile by using import plyfile but I get following error,
ModuleNotFoundError: No module named 'plyfile'
Ok simple fix I'll pip install plyfile
(base) PS C:\WINDOWS\system32> pip install plyfile
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: plyfile in c:\programdata\anaconda2\lib\site-packages (0.5)
Requirement already satisfied: numpy>=1.8 in c:\programdata\anaconda2\lib\site-packages (from plyfile) (1.16.3)
Ahh OK its not installed for py3.7 I'll pip3 install plyfile
(base) PS C:\WINDOWS\system32> pip3 install plyfile
Fatal error in launcher: Unable to create process using '"'
errrr ok pip3 --version
(base) PS C:\WINDOWS\system32> pip3 --version
Fatal error in launcher: Unable to create process using '"'
So I had a look around SO for previous posts & there are a few & honestly after reading them I dont get what's going on.
So whats going on? Am I right to use pip3 & its just badly installed or is there something deeper about the differences between the pips I'm not getting?
Edit 1: pip install --upgrade pip makes no difference
Edit 2:
(base) PS C:\WINDOWS\system32> python --version
Python 3.7.3
(base) PS C:\WINDOWS\system32> pip --version
pip 19.1.1 from c:\programdata\anaconda2\lib\site-packages\pip (python 2.7)
Edit 3:
(base) PS C:\WINDOWS\system32> python -m pip install -U pip
D:\ProgramData\Anaconda3\python.exe: No module named pip
Solution:
Downloaded get-pip.py
Then from the terminal python get-pip.py --ignore-installed
Successful installation & upgrade,
(base) PS D:\Downloads> pip --version
pip 19.1.1 from d:\programdata\anaconda3\lib\site-packages\pip (python 3.7)
pip install plyfile collected & installed plyfile & now import plyfile works
Solution from pip's git page issue #1892 How do you remove pip from a pc if you installed by "get-pip.py"

Can't install tensorflow with conda package manager. Pip3 not found and virtualenv not compatible

Trying to install tensorflow on OSX with python installed with anaconda :
https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#virtualenv-installation
Get stuck on :
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl
and get error :
tensorflow-0.7.1-cp35-none-any.whl is not a supported wheel on this platform.
When I try virtualenv installation
New python executable in /Users/xxx/tensorflow/bin/python
ERROR: The executable /Users/xxx/tensorflow/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/xxx/tmp' (should be '/Users/xxx/tensorflow')
ERROR: virtualenv is not compatible with this system or executable
What's the best way to install tensorflow with python installed with anaconda?
I had the same issue trying to install with python 3.4.3 and pip 8.1.
$ pip install --upgrade https://storage.googleapis.com/tensorflow
tensorflow-0.7.1-cp35-none-any.whl is not a supported wheel on this platform.
To fix I simply upgraded to python 3.5.1 (I use pyenv to allow installation local of multiple versions of python).
Running with python 3.5.1 I can now successfully execute:
$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl
...happy install message fun follows....
I have no clue as to why python 3.4.3 fails, but this version of tensorflow https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py3-none-any.whl seems to work with python 3.4.3 fine.

Categories