Google Colaboratory gives me an error when I want to install OpenSlide - google-colaboratory

When I ran the following commands in the Jupiter notebook, it gives me an error.
!apt-get install openslide-tools
!pip install openslide-python
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It was working before but right now it gives me an error when I try to run it.

Seems you have to install the python libraries for openslide through apt-get. Try this
!apt-get install openslide-tools
!apt-get install python3-openslide

Related

How to install UpSetPlot on google colab

I am using google colab for python programming.
however, the package UpSetPlot was not installed. I tried using the command:
!pip install UpSetPlot
but the following error appears:
Collecting UpSetPlot
Using cached https://files.pythonhosted.org/packages/a7/11/5cc8a0ebaf4f3a9a8e02cd3a9a13806eaebfc1d2ffb4a40031bdc83ad1be/UpSetPlot-0.5.0.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
There seems to be a problem in versions after 0.4.1 of upsetplot which may be related to the version of Python that is used in Colab.
Try this in a Colab cell.
!pip install upsetplot==0.4.1

Unable to install tensorflow graphics

I am trying to use Levenberg optimizer using the tfg.math.optimizer.levenberg_marquardt.minimize. I am following the installation instructions from https://www.tensorflow.org/graphics/install
On using: pip install --upgrade tensorflow-graphics, I get the following error:
ERROR: Failed building wheel for OpenEXR
Running setup.py clean for OpenEXR
Failed to build OpenEXR
Installing collected packages: OpenEXR, tensorflow-graphics
Running setup.py install for OpenEXR ... error
ERROR: Command errored out with exit status 1:
Could you please help me with this?
Thanks
I'm on Linux and I needed to install libopenexr-dev with apt:
sudo apt install libopenexr-dev
After this pip install tensorflow-graphics run without problems.

Error intsalling tensorflow via pip install

WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an EnvironmentError: [WinError 2] The system cannot find the file specified: 'c:\python38\Scripts\chardetect.exe' -> 'c:\python38\Scripts\chardetect.exe.deleteme'
I was trying to install Tensorflow via command pip install tensorflow. and after downloading everything at the end found this error..can anyone tell me why this happened?
According to https://www.codegrepper.com/ you can use these two:
In Windows
python -m pip install -U pip --user
In Linux
pip install -U pip --user

cffi.error.VerificationError (undefined symbol: SSLv2_client_method) when running Google Cloud Datalab notebook

I'm trying to run this notebook on Google Cloud Datalab: https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/feateng/feateng.ipynb
While it was perfectly working yesterday, today running the first block results in cffi.error.VerificationError (undefined symbol: SSLv2_client_method).
Can you advise on how I can fix this?
I've tried to do the same from a different GC profile and the problem remains.
I've also tried to fix 'pip install' as described here: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)". Doing this in Datalab causes the same error; doing this in Cloud shell outside Datalab doesn't change anything.
This has been answered on github by #ekuuni:
https://github.com/GoogleCloudPlatform/training-data-analyst/issues/313
%%bash
source activate py2env
conda install -y pytz
conda update -y pyopenssl
pip uninstall -y google-cloud-dataflow
pip install --upgrade apache-beam[gcp]
I needed these 2 more lines for it to work.
pip install tensorflow_transform
pip install tensorflow==1.9.0
A good workaround is using virtual environments rather than Datalab so you don't have to deal with version updates:
https://cloud.google.com/dataflow/docs/quickstarts/quickstart-python
I have successfully installed the following on python 2.7
apache-beam==2.7.0
tensorflow==1.11.0
tensorflow-transform==0.8.0

pip install tensorflow fails - MAC OSError: [Errno 13]

I am trying to install tensorflow on mac Sierra. When I run pip install tensorflow I get following report.
It works fine for me by using command :
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.1-py3-none-any.whlrflow-1.10.1-py3-none-any.whl
run sudo pip install tensorflow
The problem appears to be, that you have not got the rights to install tensorflow globally. Therefore, one solution appears to be, that you try to install tensorflow locally using the following command:
pip install tensorflow --user