Cannot pip install scipy, mlxtend and math libraries - python

I am using python 3.5 on windows 10. I am not able to install some libraries like scipy, mlxtend and math.
I have installed and upgraded setuptools and ez_setup following this answer
Python pip install gives "Command "python setup.py egg_info" failed with error code 1"
When I try to pip install scipy and mlxtend I get the following error:
NotFoundError: no lapack/blas resources found
And when I try to install math I get the following error:
Using cached Math-0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\setup.py", line 2, in <module>
raise RuntimeError("Package 'Math' must not be downloaded from pypi")
RuntimeError: Package 'Math' must not be downloaded from pypi
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\

On Windows, you'll want to locate the unofficial binaries here and download the appropriate .whl files for the packages you're wanting to install. Use pip to install and upgrade wheel and setuptools then do pip install the_name_of_the_file.whl
so altogether, assuming you want to install matplotlib and the .whl file is in your current directory...
pip install wheel
pip install --upgrade setuptools
pip install matplotlib‑1.5.3‑cp35‑cp35m‑win32.whl

Related

ModuleNotFoundError: No module named 'setuptools_rust' when installing packages [duplicate]

This question already has an answer here:
Not able to install django-allauth in ubuntu 18.04.6 LTS
(1 answer)
Closed 8 months ago.
I'm trying to install paramiko using pip package on centos7 OS and getting issues like as below and installed python3 with below command
yum install -y python3
[root#test ~]# pip3 install paramiko
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting paramiko
Using cached https://files.pythonhosted.org/packages/04/e5/39ec73dd4a8769d6759b8d6c60a1b2c9337f585407c2ae8bfb8ccb734278/paramiko-2.11.0-py2.py3-none-any.whl
Collecting cryptography>=2.5 (from paramiko)
Using cached https://files.pythonhosted.org/packages/51/05/bb2b681f6a77276fc423d04187c39dafdb65b799c8d87b62ca82659f9ead/cryptography-37.0.2.tar.gz
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ccbam6fs/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ccbam6fs/cryptography/
Just need to Upgrade pip package
pip3 install --upgrade pip
or
pip install --upgrade pip

Error while installing robotframework -ride

I'm new to Python and have been trying to install some packages with pip.
I have gone through this sequence-------------
Download Python 2.7.15 from
https://www.python.org/downloads/
PATH = C:C:\Python27;C:\Python27\Scripts
(Is this we have to set in User Variable or System Variable?)
Then download wxPython from this link (Download this version wxPython2.8-win64-unicode-2.8.12.1-py27)
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
Then
Download setuptools (setuptools-39.2.0.zip) for Python from
https://pypi.org/project/setuptools/#files
Then
Download PIP files (pip-10.0.1.tar.gz) from
https://pypi.org/project/pip/#files
Now Extract the Setuptools
After extracting from the same folder TYPE "cmd" it will open then run this commend
"python setup.py install"
Now Extract the PIP files
After extracting from the same folder TYPE "cmd" it will open then run this commend
"pip install robotframework"
On the cmd run these commends one-by-one
pip install robotframework-ride
pip install robotframework-selenium2library
pip install selenium
pip install decorator
pip install docutils
pip install xlrd
pip install xlwt
pip install xlutils
pip install pigments
But pip install robotframework-ride unroll gives me
D:\Python\pip-10.0.1\pip-10.0.1>pip install robotframework-ride
Collecting robotframework-ride
Using cached https://files.pythonhosted.org/packages/3c/14/a5f97f5cf5e981f01e8
c0b4c405b0dfc9bc86500cabb044d2c462f73004a/robotframework-ride-1.5.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Deeksha\AppData\Local\Temp\pip-install-f5wsnk57\robotframew
ork-ride\setup.py", line 20, in <module>
execfile(join(ROOT_DIR, 'src', 'robotide', 'version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Deeksha\
AppData\Local\Temp\pip-install-f5wsnk57\robotframework-ride\
How can I solve this?

No module named 'setuptools', even though the module is installed

I'm trying to install the openpyxl package with pip, using Windows.
PS C:\Scripts> pip install openpyxl
Collecting openpyxl
Using cached openpyxl-2.5.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
When I run the setuptools installation I get:
PS C:\Scripts> pip install setuptools
>>
Requirement already satisfied: setuptools in c:\scripts\lib\site-packages
I tried uninstalling and installing the setuptools again, but no success. What am I doing wrong?
PS C:\Users\dolinar\Desktop\setuptools-38.4.0> python .\easy_install.py
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 2] No such file or directory: 'C:Lib\\site-packages\\test-easy-install-9076.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:Lib\site-packages\
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
The directory exists.
It should be installed system-wide. If you are using Ubuntu/Debian:
apt-get install -y python-setuptools
If you are on Windows, see this answer to install setup tools.

Python 2.7.11 Pip 8.0.3 can't install gohike WHL of TA-Lib 0.4.9 [duplicate]

When I try to install any .WHL from gohike by typing into the cmd C:\Users\owner\Downloads>pip install TA_Lib-0.4.9-cp27-none-win_amd64.WHLI get this print out:
`Processing c:\users\owner\downloads\ta_lib-0.4.9-cp27-none-win_amd64.whl
Complete output from command python setup.py egg_info:
Traceback <most recent call last>:
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory:'c:\\users\\owner\\appdata\\lo
cal\\temp\\pip-9gwk2c-build\\setup.py'
-----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\owner\ap
pdata\local\temp\pip-9gwk2c-build\`
The part between pip- and -build inpip-9gwk2c-build is always different even on the same file.
I asked this Python 2.7.11 Pip 8.0.3 can't install gohike WHL of TA-Lib 0.4.9 a few days ago and decided to ask differently. Thanks to anyone who can help me!
You have an outdated pip which does not understand wheels. Wheels are not even supposed to have a setup.py inside.
Try upgrading pip with pip install --upgrade pip and then running the command again.
Well, I didn't fix pip but I found out that if I use 7zip to open/unpack the wheel file and drag drop the 2 folders in it into C:\Python27\Lib\site-packages that it works!

Error when installing github module via pip

I'm trying to download a python module from github using pip, but I seem to be running into problems upon download:
00000#ubuntu-00000:~/Desktop/Python/Blockchain.data$ pip install git+https://github.com/luke-jr/eloipool.git
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting git+https://github.com/luke-jr/eloipool.git
Cloning https://github.com/luke-jr/eloipool.git to /tmp/pip-f159a1wz-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 18, in <module>
File "/home/00000/anaconda3/lib/python3.4/tokenize.py", line 438, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-f159a1wz-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-f159a1wz-build
Any insight into why this isn't installing?
I experienced a similar problem when installing selenium recently. Firstly upgrade your PIP. Then try installing what ever you are trying to install.
Module did not contain a setup.py file.
Ended up doing:
git clone https://ADDRESS .

Categories

Resources