I would like to install jupyter labs on my linux system. I have python3.9 installed so I run pip install jupyterlab as per official documentation.
After the download is finnished, I get the following error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
notebook 6.3.0 requires nbconvert==6.0.7, but you have nbconvert 6.5.0 which is incompatible.
notebook 6.3.0 requires nbformat==5.1.3, but you have nbformat 5.4.0 which is incompatible.
notebook 6.3.0 requires traitlets==4.3.3, but you have traitlets 5.3.0 which is incompatible.
Weird, but I have tried intalling all of these manually afterwards using pip install nbformat==5.1.3 and so on...
After the installation, I run jupyter lab, and the following error appers:
Traceback (most recent call last):
File "/root/venv/bin/jupyter-lab", line 5, in <module>
from jupyterlab.labapp import main
File "/root/venv/lib/python3.9/site-packages/jupyterlab/labapp.py", line 13, in <module>
from jupyter_server.serverapp import flags
File "/root/venv/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 105, in <module>
from jupyter_server.gateway.managers import (
File "/root/venv/lib/python3.9/site-packages/jupyter_server/gateway/managers.py", line 25, in <module>
from ..services.sessions.sessionmanager import SessionManager
File "/root/venv/lib/python3.9/site-packages/jupyter_server/services/sessions/sessionmanager.py", line 20, in <module>
from jupyter_server.traittypes import InstanceFromClasses
File "/root/venv/lib/python3.9/site-packages/jupyter_server/traittypes.py", line 5, in <module>
from traitlets.utils.descriptions import describe
ModuleNotFoundError: No module named 'traitlets.utils.descriptions'
I have tried installing traitlets, but indeed when I run:
import traitlets
traitlets.utils.descriptions
I get:
AttributeError: module 'traitlets.utils' has no attribute 'descriptions'
Maybe this is the wrong version of the module? Which one should I install then?
Related
python version -3.5.6
using anaconda, c++build tools are installed
pip install zipline works perfectly
import zipline # gives error below
(myenv) c:\users>>>pip show zipline
Name: zipline
Version: 1.4.1
Summary: A backtester for financial algorithms.
Home-page: https://zipline.io
Author: Quantopian Inc.
Author-email: opensource#quantopian.com
License: Apache 2.0
Location: c:\users\user\anaconda3\envs\ziplinerr\lib\site-packages
Requires: pip, setuptools, Logbook, click, six, python-interface, multipledispat
ch, toolz, numpy, pandas, pandas-datareader, scipy, patsy, statsmodels, empyrica
l, pytz, iso3166, trading-calendars, requests, sqlalchemy, alembic, bcolz, h5py,
tables, lru-dict, intervaltree, bottleneck, networkx, numexpr, iso4217
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\__init_
_.py", line 29, in <module>
from .utils.run_algo import run_algorithm
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\utils\r
un_algo.py", line 20, in <module>
from zipline.data import bundles
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\data\bu
ndles\__init__.py", line 2, in <module>
from . import quandl # noqa
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\data\bu
ndles\quandl.py", line 16, in <module>
from . import core as bundles
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\data\bu
ndles\core.py", line 15, in <module>
from ..minute_bars import (
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\zipline\data\mi
nute_bars.py", line 24, in <module>
import h5py
File "C:\Users\User\anaconda3\envs\ziplinerr\lib\site-packages\h5py\__init__.p
y", line 36, in <module>
from ._conv import register_converters as _register_converters
File "h5py\h5r.pxd", line 21, in init h5py._conv
File "h5py\_objects.pxd", line 12, in init h5py.h5r
File "h5py\_objects.pyx", line 1, in init h5py._objects
ImportError: DLL load failed: The specified procedure could not be found.
this worked for me:
# Create environment
conda create -n zipline_env python=3.6 ipykernel
# Activate environment, make sure you can see it in jupyter notebooks
conda activate zipline_env
python -m ipykernel install --user --name=zipline_env
# Install Zipline
conda install -c conda-forge zipline
If I swapped the order of the steps, it didn't work. After the above order is complete, then conda installing packages I want works fine, like jupyter, matplotlib, etc.
I installed UHD with Conda using the conda install -c conda-forge uhd command. Then I ran conda install uhd. When I try to import uhd in Python3.6, I get an ImportError:
>>> import uhd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/asamant/miniconda3/lib/python3.6/site-packages/uhd/__init__.py", line 10, in <module>
from . import types
File "/home/asamant/miniconda3/lib/python3.6/site-packages/uhd/types.py", line 10, in <module>
from . import libpyuhd as lib
ImportError: libudev.so.0: cannot open shared object file: No such file or directory
The dependency on libudev cannot be shipped via conda-forge and therefore you yourself have to make sure it is available.
You need to install alibudev-0.x package manually (libudev1 won't work!)
The easiest way to solve this is to use your system's package manager, e.g. apt-get install libudev1 for Ubuntu.
It looks to me as if libudev.so.0 is different from libudev.so.1 shipped via the libudev1 package by the ubuntu package manager.
There seem to be ways around, but it is not a beautiful solution: https://askubuntu.com/questions/729067/libudev0-is-not-installed
I installed tensorflow using this link on StackOverflow.
But, when I tried to run my code, I got the error below
This is my system's information
(env) PS C:\SD\project> python --version
Python 3.7.3
(env) PS C:\SD\AnomalyDetectionCVPR2018> pip3 --version
pip 19.1.1 from c:\sd\env\lib\site-packages\pip (python 3.7)
The error that I got:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\SD\env\lib\site-packages\tensorflow\python\__init__.py", line 66, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\SD\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "C:\SD\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'
Failed to load the native TensorFlow runtime.
See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
What am I doing wrong? So far I've used Python and pip with no issues.
again, I had the same problems that you have now, I tryed install tensorflow in windows7, windows 8 and 10 inclusive in virtual machinnes, the same problem was for matplotlib.
My solution was remove my python version and I installed Anaconda,
Try to install Anaconda3-4.4.0-Windows-x86_64 or Anaconda3-4.4.0-Linux-x86_64.sh for linux, this version was released in 2017-05-26.
Anacoda versions
And then try to install tensorflow, matplotlib, pandas, numpy but before run
conda update conda
To update some packages of anaconda. And you will install those the packages/libraries without problems,
Best Regards
Been trying to install numpy on pypy3 with pip. The install works fine, but when I do import numpy, I get the following error. Anyone have any advice?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/carl/pypy3-v6.0.0-linux64/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/carl/pypy3-v6.0.0-linux64/site-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
File "/home/carl/pypy3-v6.0.0-linux64/site-packages/numpy/core/multiarray.py", line 44, in <module>
arange.__module__ = 'numpy'
AttributeError: readonly attribute '__module__'
Using the latest pypy3 versions from the site on Ubuntu
Python 3.5.3 (fdd60ed87e94, Apr 24 2018, 06:10:04)
[PyPy 6.0.0 with GCC 6.2.0 20160901] on linux
Latest pip too
pip 18.1 from /home/carl/pypy3-v6.0.0-linux64/site-packages/pip (python 3.5)
numpy 1.16.0 is incompatible with pypy3 v6.0, more details here. The solution is to use either numpy 1.15.4, or to use a pypy3 nightly while waiting for the next release.
I finally got pip install buildbot-slave to work on Win7 (thanks to another answer on this site), and now when I attempt to create a build slave via:
buildslave create-slave slavefolder blah.blah.com:9989 buildslave password
It kicks back the following error:
Traceback (most recent call last):
File "C:\Python27\Scripts\buildslave", line 3, in <module>
from buildslave.scripts import runner
File "C:\Python27\lib\site-packages\buildslave\scripts\runner.py", line 22, in <module>
from twisted.python import reflect
File "C:\Python27\lib\site-packages\twisted\__init__.py", line 53, in <module>
_checkRequirements()
File "C:\Python27\lib\site-packages\twisted\__init__.py", line 37, in _checkRequirements
raise ImportError(required + ": no module named zope.interface.")
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.
I've got it all installed here is my pip freeze:
Twisted==14.0.0
argparse==1.2.1
buildbot-slave==0.8.9
stevedore==0.15
virtualenv==1.9.1
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.1
virtualenvwrapper-win==1.1.5
zope.interface==4.1.1
Any recommendations would be greatly appreciated.
Try to uninstall zope.interface and reinstall the version 3.6.0 using the command
pip uninstall zope.interface
pip install zope.interface==3.6.0
Hope this helps.