numpy is not installing in windows 7 soon after get-pip.py - python-2.7

This is the error please help me what to do
i have downloaded all the dependencies but numpy is showing errors

you're using pip3 - that's for Python3.
Try pip install numpy

Related

installing seaborn without sudo

I am trying to install seaborn without using sudo. I have already installed on my python 2.7 and windows 7 setting with the following cmd commands :
pip install pandas
pip install xlrd
pip install matplotlib
and they all were installed like charm.
`pip install seaborn` did not work
i have attached the error message.[last lines of emssage][1]
You may be interested in installing precompiled python wheel binaries for Windows.
That, or use something like Anaconda python.

No module named 'matplotlib.pyplot'; 'matplotlib' is not a package

Have found a similar issue, however haven't found proper solution.
Here's a code:
import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,2,5])
plt.show()
Run, got the message:
ImportError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
I run Linux Mint 18 with preinstalled python-2.7 and python-3.5 (I use python3), before that I was installing modules with a simple sudo apt-get install method and that worked great.
Before running this the code above, I've installed matplotlib in a usual way sudo apt-get install python-matplotlib. As it haven't worked out, started to look for solution.
Python location
which python3 /usr/bin/python3
Current Matplotlib installed
sudo find /usr | grep matplotlib /usr/lib/python3/dist-packages/matplotlib
My tries:
1) I've removed matplotlib with autoremove, and tried to make it sudo apt-get install python3-matplotlib instead. Didn't worked out.
2) Used: pip3 install matplotlib or sudo pip3 install matplotlib. Received errors like:
command python setup.py egg_info failed with error code 1 in /tmp/pip-build- ....
3) Then I found another solution:
sudo apt-get install virtualenv
virtualenv -p /usr/bin/python3 py3env
source py3env/bin/activate
pip install matplotlib
Same outcome.
Haven't tried to use import sys sys.path.append('/usr/lib/pymodules/python2.7/')(proposed in link above), but as I am not sure what exactly this command does (quite a newbie to python and programming itself) - haven't risked.
If you are using pycharm and have matplotlib.py in your current working directory than you get this error. Just delete or rename the matplotlib.py file and it will work.
don't name any file as matplotlib.py within your working directory
In your working directory, check if there is any file matplotlib.py
Delete that file and import matplotib again. That should work.
simply install:
python -m pip install -U pip
python -m pip install -U matplotlib
I had the same problem reasons in my case were
python 3.8.2 with matplotlib that I downloaded was for 3.7. Make sure they are the same.
python 64 bits version with matplotlib 32bits. Make sure they are the same
Use python -m pip install package_which_you_need to install packages for Windows
Make sure to add to PATH the environment variables I forgot to do in my case
pip version was old use
Use python -m pip install --upgrade pip to upgrade pip to the latest for Windows
I saved the file name as matplotlib.py. Try to avoid that
Finally I typed matplotlib.pyplot as matplotlib.plyplot remember to check for typos first. The error message looks similar even though I corrected all the steps above.
ModuleNotFoundError: No module named 'matplotlib.pyplot'
ModuleNotFoundError: No module named 'matplotlib.plyplot'

python lasagne ImportError cannot import BatchNormLayer

When I try to play with the code here, I met a very strange error.
Every other modules can be imported properly, except for one.
Specifically, the error is:
ImportError: cannot import name BatchNormLayer
from the file here. And the lasagne_extensions.layers is as following:
from .density_layers import *
from lasagne.layers import *
from parmesan.layers import *
So, I believe the problem should be that I didn't install lasagne or parmesan properly.
I have tried to upgrade the relevant modules including numpy, scipy, theano and lasagne to newest version with pip install --upgrade respectively. There is no pip install support for parmesan, so I downloaded it and installed it again.
However, the error remains.
Can anyone give me some advice about what I should look into?
The solution is to install the cutting-edge version, and pip install --upgrade does not do that.
But the problem can be solved by:
pip install --upgrade https://github.com/Theano/Theano/archive/master.zip
pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
Details are here.

Installing pandas in django

I have installed numpy and pandas in ubuntu 12.04. Also, I have added django_pandas in my INSTALLED_APPS but then also I am getting
ImportError: No module named django_pandas
how should i proceed now
There are no extra steps you need to take to install "Pandas in Django", just install Django and Pandas using pip:
pip install django
pip install pandas
sorry for the question. i havent correctly executed the command
pip install https://github.com/chrisdev/django-pandas/tarball/master.
after going for the above command it worked fine

installing numpy&scipy on centos 6.4

I am working in a virtual environment and I am having trouble installing numpy and scipy. It is my understanding that I have to full install numpy before going to scipy, but I am having trouble installing numpy.
I usedpip install numpy and that installed numpy into my python2.7/site-packages/numpy directory, however, I am trying to run python setup.py install --user as stated here numpy build and I keep getting the error "this is the wrong file to run". I do not know where to go from here....and I still need to install scipy
numpy and scipy come pre-compiled with CentOS, just type:
sudo yum install numpy scipy
it is always harder to install from source code.