Install NumPy for Python 3.5 - python-3.x

I am using python 3.5 and I am trying to install NumPy but when I try to install from command prompt using command: pip install numpy
I get a whole lot of errors. The main error though seems to be at the end: error: Unable to find vcvarsall.bat
I have also tried downloading the numpy binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and installing using command: pip install numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl
But I get an error that says: numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Then I found a numpy-1.10.2-win32-superpack-python3.4.exe file here https://sourceforge.net/projects/numpy/files/NumPy/1.10.2/ but when I try to run that I get an error that I require Python version 3.4.
I looked and cannot find an installer for python 3.5.exe, do I need to uninstall python 3.5 and install 3.4 instead? Or is there anyway to install numpy for Python 3.5?
I am using Windows 10/64 bit.

An easy way to obtain numpy, scipy, pandas, ... is to install anaconda.
Anaconda will automatically download and install the latest modules.
https://www.continuum.io/downloads
I hope this will help you along.

Related

I am having issue installing numpy in windows

I had Python 3.9.0 32 bit installed in my windows system and successfully installed numpy using the command: pip install numpy in the command Prompt.
I then had to switch to Python 3.9.0 64 bit and I was unable to use numpy from here on so I tried to install it again but I got the following error;
ERROR: Command errored out with exit status 1
When I used the command pip uninstall numpy, I get the following message:
WARNING: Skipping numpy as it is not installed*
I already uninstalled Python 3.9.0 64 Bit and reinstalled it again and it still did not work.
I even used the command pip install -U pip setuptools and nothing.
I will appreciate if anyone can help. Thank you in advance.
i think Windows has both Python versions mixed up, or there are traces of both 32 bit and 64 bit, have a look at the PATH environment variables, and other variables relating to Python are using the right file path.
If this does not resolve the issue remove both versions of Python and use a CCleaner to remove any traces of Python from your computer, and check what you are removing with CCleaner, and then install Python 32 bit version again, and then numpy.

weka python wrapper loader for windows 10

I've installed weka python wrapper on Windows 10. And I tried running the sample code:
but i got this kind of error:
any solution to fix this issue?
You need to install python-weka-wrapper3 if you want to use it with Python 3. The python-weka-wrapper package is for Python 2.7:
You can install it with pip like this:
pip install python-weka-wrapper3

How to fix error "Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-install-r1jk6xfr\pandas\"?

I'm trying to install pandas in my windows 10 64bit computer. I already installed python 3.8.0 from the follwing link.
https://www.python.org/downloads/windows/
I tried to install pandas by pip install pandas command.
But I couldn't install pandas due to the following error. Can someone help me to solve this error?
When I tried to install numpy by pip install numpy I'm getting the following error.
Based on the Traceback calls, install the Microsoft Visual C++, followed by the installation of NumPy and Pandas library.
You or others facing the same problem can also proceed by installing Anaconda which has all the built-in libraries in it.

ERROR in install opencv in my python 3.6.6

I HAVE PYTHON 3.6.6 INSTALLED IN MY WINDOWS 7 PLATFORM BUT WHEN I TRIED TO INSTALL OPENCV PACKAGE IT SAYS REQUIREMENT ALREADY SATISFIED AND IF I TRY TO IMPORT CV2 IT SAYS NO MODULE .I'VE TRIED ALL POSSIBLE METHODS ON INTERNET WHAT SHOULD I DO
i tried to download opencv exe from sourceforge and copying cv2.pyd file and then pasting it in site packages
i tried pip install opencv_python-4.0.1-cp37-cp37m-win_amd64.whl
but nothing works
The error message says that you are asking PIP install a version of cv2 for 64-bit Python 2.7, and that installation is failing. So the installation is not happening because it's the wrong version. That might be because you don't have Python 2.7, or because you have a 32-bit processor, or both. Navigate to Python36\Scripts and issue the command pip install opencv_python. Then pip will find the appropriate file to download, and install it.

Error while installing psycopg2 in Windows

I tried to install psycopg2 as:
pip install psycopg2
It was giving error for pg_config. I checked some stackoverflow notes and installed PostgreSQL. Added the path of pg_config in $PATH.
Now it is giving the below error:
LINK : fatal error LNK1181: cannot open input file 'libpq.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
Any help on this?
Have you tried reinstall without pip?
sudo apt-get install python3-psycopg2
EDIT: Since you're on windows:
You can try this if you're using python 2.7:
pip uninstall psycopg2
pip install git+https://github.com/nwcell/psycopg2-windows.git#win64-py27#egg=psycopg2
If you're using python 3.4:
pip uninstall psycopg2
pip install git+https://github.com/nwcell/psycopg2-windows.git#win64-py34#egg=psycopg2
More info here.
If you prefer, you can download the installer (.exe) and install it.
You can find it here.
I found the issue.... I was using Python 3.7 version. Looks like the latest stable version of psycopg2 (2.7.4) is not yet supported on Python 3.7. It is supported till 3.6
I downgraded my python to 3.6.5 in Anaconda and also to 2.7.15 through PyCharm. I was able to install psycopg2 in both and use them.
Go to https://pypi.org/project/psycopg2
in release history and select the version you want to download.
There will be a table with files and the versions of python that can be compatible with the selected version.
Now download the wheel file that matches your system configuration(mac/linux/win-32/win-64)
I did this and was able to download the package.
For windows10(64-bit), download psycopg2-2.7.7-cp36-cp36m-win_amd64.whl (998.5 kB), in case you have selected 2.7.7
For Windows users, to install the psycopg2 without any errors first install Python 3.7.4 version and then install psycopg2 using command pip install psycopg2 as it worked complete fine with me. I think there is some issue in Python 3.8.0 version onwards because while installing psycopg it is showing an error in setup wheels.
In case you are here in 2020, this is a problem with version 3.8 of python. I had the issue recently. Try using virtualenv so that you can use lower versions of python in your workspace until psycopg2 is supported fully on Python version 3.8

Resources