Install OpenEye, Scikit-learn, TensorFlow in a Virtual Environment

Today, I would like to install OpenEye, Scikit-Learn, as well as some other Python packages on Linux cluster. However, I didn’t have the host permission to do that. Thus, I have to learn how to install them in a virtual environment. In fact, it is cool!

1. Make sure you have installed “pip”, and “virtualenv”

 

2. Created a virtual environment directory, here I used the name “env”

 

“$ virtualenv env”

The crucial packages pip and setuptools are installed, which allow other packages to be easily installed to the environment. This associated pip can be run from $env/bin/pip

 

3.  Activate the script

$ source /env/bin/activate

 

4. Install the file

Go to /env/lib/python2.7/site-packages

Then, $ env/bin/pip install OpenEye-toolkits-python2.7-redhat-6-x64-2017.2.1.tar.gz

$ env/bin/pip install scikit-learn

$ env/bin/pip install –upgrade  https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0-cp27-none-linux_x86_64.whl

Note: $ env/bin/pip install –upgrade tensorflow may lead to an error

Could not find a version that satisfies the requirement tensorflow (from versi ons: )
No matching distribution found for tensorflow

 

5. Install the license file

Go to the  bashrc. file, and set the environment variable as follows

export OE_LICENSE=~/env/bin/oe_license.txt

 

Reference:

https://virtualenv.pypa.io/en/stable/userguide/

https://docs.eyesopen.com/rocs/install.html

https://github.com/ray-project/tutorial/issues/24

https://www.tensorflow.org/install/install_linux#InstallingVirtualenv

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close