I'm trying to get Numpy working in Python 2.7.8, on a Ubuntu 12.0.4 operating system. I installed Python 2.7.8 as my default python, then installed the SciPy stack according to the site instructions. I double-checked that numpy installed in the /usr/lib/Python2.7 directory. When I run python the version is 2.7.8, but of course it can't find Numpy. Is there any way to fix this? Or should I just throw this computer out the window?
Edit: Apparently I have both 2.7.8 and 2.7.3 installed, both to Python2.7 directory. I have no idea how to get rid of either one...
Related
I installed Spyder 3.0 and also python 2.7. I want to run python 2.7 codes with spyder 3.0
I tried to change python interpreter in spyder preferences. "Preferences->Python Interpreter-> Use the following Python interpreter". I chose Python 2.7 but it did not work. I also searched Python 2.7 executable file but I could not find it in the location usr/bin (ubuntu 18.04).
How can deal with this problem?
Spyder installation is specific to one version of Python.
1) install python 2.7
2) run python2.7 -m pip install spyder in cmd
3) you should find spyder in C:\Users\YOUR_NAME\AppData\Local\Programs\Python\Python27\Scripts\spyder.exe (for Windows at
least)
4) You can make a shortcut of it
you should see the python version in the Spyder window title
Working on python 2.7(not anaconda). Operating system Windows server 2012 R2
The pypi installation mentions two fixes for this, installing Visual C++ redistributable 2015 and Universal C Runtime.
As well as a manual fix for older anaconda versions, which is for python3(I am not using anaconda version, and also my python version is 2.7 so presuming it doesn't apply in my case)
link here:
https://pypi.org/project/opencv-python/
installed both the dependencies but couldn't get it to work.
Any ideas on how I may fix this?
Since Python 2.7 is still supported, this could be the possible solution.
Installing OpenCV from prebuilt binaries:
Below Python packages are to be downloaded and installed to their default locations.
Python-2.7.x
Numpy
Matplotlib
Install all packages into their default locations. Python will be installed to C:/Python27/.
After installation, open Python IDLE. Enter import numpy and make sure Numpy is working fine.
Download latest OpenCV release and install it : Latest OpenCV-build
Goto opencv/build/python/2.7 folder.
Copy cv2.pyd to C:/Python27/lib/site-packeges.
Open Python IDLE and type following codes in Python terminal.
import cv2
print cv2.__version__
I would like to use a module (that requires scipy) in Python 2.7, but for some reason the Python interpreter tells me that I am missing a scipy.special. I do not know why is this, because such an error did not occur when running the Python 3 interpretor.
I have attempted to install scipy through Anaconda and pip, but neither of those options seemed to help.
I found a code on internet which implement a paper "Effective 3D Action
Recognition Using EigenJoints" code. They implement in Python so I tried to install Python 2.7.9 and numpy, scipy, scikit-learn. All these libraries installed successfully. In the cmd when i tried to run python eigen.py it gives me this error.
Please anyone download this code and run it by yourself or help me to solve this error.
You have to do 2 steps:
download anaconda according to your system and specifications.
Make sure that Anaconda is installed on python version installed on your system. For example, if you have python 3.4, and anaconda in installled on 2.7, then you should remove python 3.4.
Afterwards, the code will run smoothly and all libraries will be well defined. I have made the same ;) Please, let me know if you face new problems.
I was trying to install Dioptas using python setup_win_32.py install.
During the installation I got the following error:
no module named scipy.linalg.dsolve.umfpack
Does anyone know how I can resolve this issue?
I am running on Windows 7 (32-bit) and have installed all the following required libraries:
python 2.7
PyQt4
numpy
scipy
pyFAI
fabio
pyqtgraph
scikit-image
pyopencl
fftw3
UMFPACK wrapper has been removed from scipy starting from version 0.14.
A replacement is available as a scikit.