virtualenvwrapper -- Opencv 3.1.0 installation error - python-2.7

I am trying to install opencv 3.1.0 by the help of following blog(Why? Because I followed the same blog to install opencv in Desktop, but In my Laptop, following issue came)
Here I encountered the following error as --
ujjal#ujjaldas223:~$ source /usr/local/bin/virtualenvwrapper.sh
/home/ujjal/anaconda2/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/home/ujjal/anaconda2/bin/python and that PATH is
set properly.
I followed the link, but failed to resolve issue.
Suggest me how to solve this error.
I am using ubuntu 16.04 LTS both in Desktop and laptop.

I just solved it!
The problem was anaconda path appended to python.
Removing anaconda2 completely solved the issue.

Related

How to solve Pylearn2 installation error?

I got this error when trying to install Pylearn2 software.
import error img
I follow the download & installation instruction at their website http://deeplearning.net/software/pylearn2/. I have already install setuptools module using anaconda.
setup tools module.
How do I solve this?
I'm on Ubuntu 18.04 with python 2.7

Python latest release 2.7 shows SSL error

I have downloaded & installed python latest 2.7 version (on date - 16th July). Initially i was unable to install even pip using cmd - python get-pip.py, somehow i managed to installed pip. Then i was unable to install any package using pip. It throws SSL error. Tried multiple ways to install but no go. No proxy or admin issues observed (admin confirmed the same).
Then i uninstalled & reinstalled 2.7.10 which resolved the issue. Please check the issue and resolve it.
This issue is mainly because of old unstable version, used 2.7.10 and then everything worked.

How to add theano to anaconda python v2.7 on ubuntu 16.04?

I'm want to install theano into the anaconda package for python v2.7 on ubuntu 16.04. I already installed anaconda to the folder /opt/anaconda. Can some please guide me on how to install Theano package which is accessible by the anaconda packages. I've searched lot on google but not able find a clear solution to the problem.
I was recommended to switch back to 14.04 for theano, because t just stopped working on 16.04, but still I am also looking for a solid working guide.
There are some resources that explain how to set up these http://deeplearning.net/software/theano/install_ubuntu.html
and https://www.jayakumar.org/linux/gtx-1070-on-ubuntu-16-04-with-cuda-8-0-and-theano/

Fail to install Python 2.7.9 on a Windows google compute engine instance

I fired up a new Windows google compute engine instance. It's running Windows 2008 R2, service pack 1.
I download and try running the Python .msi installer for version 2.7.9, and it fails with this error:
There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.
I see this error for both the 64-bit and the 32-bit installer.
Has anyone else seen it or know of a work-around?
I reproduced your issue and I found two workarounds:
You can install python 2.7.6 successfully without further action.
If you need python 2.7.9 you can install it deselecting pip from the install menu.
This seems to be related to this answer in another thread although in that case the issue is with version 3.4.
Install python EXCEPT "pip"
Run the python install msi again and select "change"
Select "pip" and install the pip
It would be works...
I think it is a priority problem into the msi package...the package seems to try to install the pip before installing python.exe. So, pip can not be installed...
I'm using Windows 8.1 64-bit. I had 2.7.11 installed and then I tried to install PIP as well via Chocolatey PIP package.
I think my installation had got messed up because I had tried to install Python 3.4 as well as Python 2.
Then I had deleted all the Python 2 and Python 3 files in an attempt to get rid of this.
What worked for me was:
Editing the Environment Variables both, System and User to remove any PYTHONHOME or PYTHONPATH variables
I also deleted the path I had to python2 in the PATH environment variable
Now (as mentioned in Python Issue 22329) after deleting the Environment variables you can go into 'Programs and Features', click on the Python 2.7.11 (64-bit) program and then click 'Repair' - this then worked as I would expect without error.
Now finally I was able to go into 'Programs and Features', click on the Python 2.7.11 (64-bit) program and then click 'Uninstall'.
Edit: I assume this is connected with this PYTHON_HOME answer to a problem with Python 3.4
It seems to be a dependency issue, please try to install "Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)"

How to install pgdb on MacOS Yosemite?

On Mavericks, I downloaded the source code and and built and installed it with Distutils as I explained on Stackoverflow.
I try to reproduce it on Yosemite and I have the following error message:
Exception: pg_config tool is not available.
The command in 'setup.py' that generates the problem is supposed to "Retrieve information about installed version of PostgreSQL."
f = os.popen('pg_config --%s' % s
I used the graphic installer to install PostgreSQL on my computer.
The graphic installer did not work. By using Homebrew to install PostgreSQL, everything worked fine.
brew install postgresql