Site packages location not shared between Python and Jupyter Lab

I appreciate the fact that Jupyter runs in an isolated mode. I read several posts about it by now. What I don't understand is why the JUPYTER_PATH variable is ignored as well as appending manually (as a proof of concept) the path of the current site packages from my brewed Python dir. I couldn't find any documentation specific for the Lab so I assumed this should have worked out of the box. Any idea on how to avoid installing all …
Topic: pip jupyter
Category: Data Science

How to integrate google cloud with dropbox and jupyter notebook using tensorflow

So I opened up a google cloud account and have access to global and local (us east 1) resources (Compute Engine API , NVIDIA K80 GPUs) and connected it to my dropbox. Next, I followed this youtube video to try to connect it to my jupyter notebook. The code to be entered into the google cloud platform is as follows: sudo apt-get update sudo apt-get - -assume-yes upgrade sudo apt-get - -assume-yes install software-properties-common sudo apt-get install python-setuptools python-dev build-essentials …
Category: Data Science

PermissionError for conda env update

I got a very strange error when run conda env create -f environment.yml. Due to proprietary information, I cannot share the content of environemnt.yml, except that it contains a pip section - pip - pip: - sqlalchemy - pyyaml It seems to run OK up to the creation of the requirements.txt file, and then throw the following error Collecting package metadata: done Solving environment: done Preparing transaction: done Verifying transaction: done Executing transaction: done # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback …
Category: Data Science

How to integrate Zoho analytics with Jupyter notebook?

I am trying to connect Zoho Analytics and Python for importing data from Zoho Analytics. I have already installed !pip install zoho-analytics-connector. What should I do next? I am new to integrating with other BI tools so unable to find out a better solution. Can you guide me on this? I am referring the instructions from https://pypi.org/project/zoho-analytics-connector/ and https://www.zoho.com/analytics/api/#python-library. from __future__ import with_statement from ReportClient import ReportClient import sys Now, I am getting an error as: Traceback (most recent call …
Category: Data Science

conda/pip package conflicts for tensorflow-gpu

I am using ubuntu 20.04 in Windows 11's WSL2 environment. The PC has a Nvidia GPU and so I have been using CUDA to accelerate tensorflow code execution. I used conda to install tensorflow 2.6.2 and it got the correct versions of drivers, cudatoolkits, and cudnn installed. I am happy with it. The issues arised after I used conda to install tensorflow-addons and tensorflow-datasets. The available latest version of tensorflow-addons on conda is 0.13.0. So I conda installed it. However, …
Category: Data Science

Google Colab conda packages permanently installation

I want to install some conda packages on Google Colab. Installation done successfully, but it wont detect it when we restart the new Colab session. I followed the link "#https://stackoverflow.com/questions/55253498/how-do-i-install-a-library-permanently-in-colab", but still no luck. Please let me know how to install python packages using conda + pip permanently on Google Colab.
Category: Data Science

What is this PIP syntax: "azureml-dataset-runtime[pandas,fuse]"

I came recently across this environment file: name: azureml_mnist channels: - conda-forge - defaults dependencies: - ipykernel=5.5.3 - matplotlib=3.4.1 - python=3.8 - pip - pip: - azureml-dataset-runtime[pandas,fuse] Regarding this line: azureml-dataset-runtime[pandas,fuse] What do the square brackets mean? I've never seen packages declared like this and could not find anything in the docs to explain what this [ ] syntax means or does.
Topic: pip python
Category: Data Science

Installing Orange Package with older Python Version?

I am trying to install an Add-on package from GitHub that contains prototype widgets for Orange Data Mining. I am trying to install it from the GitHub page found here. I am using the following Terminal code to install this: git clone http://github.com/biolab/orange3-prototypes.git Everything then appears to install correctly and the download shows 100%. Then, however, it throws an error and says: Orange requires Python >= 3.4 I am using Mac OS. Clearly, it is suggesting that I need to …
Category: Data Science

Getting errors while trying to install tensorflow on ubuntu

I was following these instructions for installing tensorflow. I tried pip install --upgrade tensorflow but am getting this error: ERROR: Exception: Traceback (most recent call last): File "/home/user/venv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 304, in recv_into return self.connection.recv_into(*args, **kwargs) File "/home/user/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1822, in recv_into self._raise_ssl_error(self._ssl, result) File "/home/user/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1622, in _raise_ssl_error raise WantReadError() OpenSSL.SSL.WantReadError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/venv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 304, in recv_into return self.connection.recv_into(*args, **kwargs) File "/home/user/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1822, in …
Topic: pip tensorflow
Category: Data Science

Installing NLTK using WHL file -

I have previously used WHL (wheel) files to install various Python packages. But, it seems there's no such file for NLTK. Any workaround for this please? https://pypi.org/project/nltk/ The problem is I don't have access to install or *.exe files. Neither PIP3 works because of some reason (firewall i believe!) Error: NewConnectionError('pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/nltk/ Update-1 Just discovered, there was a Zip …
Category: Data Science

Adding custom packages to Jupyter Lab?

Is there a way of making custom Python packages generally available within Jupyter lab? While their documentation suggests to make install-able versions, and going through PIP, this is rather inconvenient for exploratory data science (especially, while I keep extending/developing these packages). Usually I would point to the location of packages as a PYTHONPATH in .bash_profile (MacOS) – a step that would make them accessible in other contexts (e.g.: Jupyter notebooks) - but does not work with Jupyter lab (on the …
Category: Data Science

what if conda has no package?

I just installed tensorflow environment with conda. but problem is conda does not have some packagefor example 'fastai' pip3 only has this package as you know pip install and conda install has different package directory so if conda does not have the package what you have to do? I dont want to move pip package to conda manually....
Category: Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.