Tensorboard - No module named 'tensorflow.python.types' - tensorboard

I try to use tensorboard but I have meet the error
tensorboard
ERROR: Failed to launch TensorBoard (exited with 1).
Contents of stderr:
2020-12-28 20:02:32.654421: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Traceback (most recent call last):
File "c:\users\eavn\anaconda3\envs\dacon\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\eavn\anaconda3\envs\dacon\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Eavn\Anaconda3\envs\Dacon\Scripts\tensorboard.exe\__main__.py", line 4, in <module>
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorboard\main.py", line 43, in <module>
from tensorboard import default
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorboard\default.py", line 40, in <module>
from tensorboard.plugins.beholder import beholder_plugin_loader
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorboard\plugins\beholder\__init__.py", line 22, in <module>
from tensorboard.plugins.beholder.beholder import Beholder
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorboard\plugins\beholder\beholder.py", line 212, in <module>
class BeholderHook(tf.estimator.SessionRunHook):
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorflow\python\util\lazy_loader.py", line 62, in __getattr__
module = self._load()
File "c:\users\eavn\anaconda3\envs\dacon\lib\site-packages\tensorflow\python\util\lazy_loader.py", line 45, in _load
module = importlib.import_module(self.__name__)
File "c:\users\eavn\anaconda3\envs\dacon\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\__init__.py", line 10, in <module>
from tensorflow_estimator._api.v1 import estimator
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py", line 10, in <module>
from tensorflow_estimator._api.v1.estimator import experimental
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py", line 10, in <module>
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py", line 31, in <module>
from tensorflow_estimator.python.estimator import estimator
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 51, in <module>
from tensorflow_estimator.python.estimator import model_fn as model_fn_lib
File "C:\Users\Eavn\AppData\Roaming\Python\Python37\site-packages\tensorflow_estimator\python\estimator\model_fn.py", line 29, in <module>
from tensorflow.python.types import core
ModuleNotFoundError: No module named 'tensorflow.python.types'
And I use tensorflow-gpu 2.2 & python=3.7.3
absl-py 0.11.0 pypi_0 pypi
argon2-cffi 20.1.0 pypi_0 pypi
astor 0.8.1 pypi_0 pypi
async-generator 1.10 pypi_0 pypi
attrs 20.3.0 pypi_0 pypi
backcall 0.2.0 pypi_0 pypi
bleach 3.2.1 pypi_0 pypi
ca-certificates 2020.12.8 haa95532_0
cached-property 1.5.2 pypi_0 pypi
cachetools 4.2.0 pypi_0 pypi
certifi 2020.12.5 py37haa95532_0
cffi 1.14.4 pypi_0 pypi
chardet 4.0.0 pypi_0 pypi
colorama 0.4.4 pypi_0 pypi
confuse 1.4.0 pypi_0 pypi
cycler 0.10.0 pypi_0 pypi
decorator 4.4.2 pypi_0 pypi
defusedxml 0.6.0 pypi_0 pypi
entrypoints 0.3 pypi_0 pypi
gast 0.2.2 pypi_0 pypi
google-auth 1.24.0 pypi_0 pypi
google-auth-oauthlib 0.4.2 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
grpcio 1.34.0 pypi_0 pypi
h5py 3.1.0 pypi_0 pypi
htmlmin 0.1.12 pypi_0 pypi
idna 2.10 pypi_0 pypi
imagehash 4.2.0 pypi_0 pypi
importlib-metadata 3.3.0 pypi_0 pypi
ipykernel 5.4.2 pypi_0 pypi
ipython 7.19.0 pypi_0 pypi
ipython-genutils 0.2.0 pypi_0 pypi
ipywidgets 7.5.1 pypi_0 pypi
jedi 0.17.2 pypi_0 pypi
jinja2 2.11.2 pypi_0 pypi
joblib 1.0.0 pypi_0 pypi
json5 0.9.5 pypi_0 pypi
jsonschema 3.2.0 pypi_0 pypi
jupyter 1.0.0 pypi_0 pypi
jupyter-client 6.1.7 pypi_0 pypi
jupyter-console 6.2.0 pypi_0 pypi
jupyter-core 4.7.0 pypi_0 pypi
jupyterlab 2.2.9 pypi_0 pypi
jupyterlab-pygments 0.1.2 pypi_0 pypi
jupyterlab-server 1.2.0 pypi_0 pypi
keras 2.3.1 pypi_0 pypi
keras-applications 1.0.8 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.3.1 pypi_0 pypi
lightgbm 3.1.1 pypi_0 pypi
llvmlite 0.35.0 pypi_0 pypi
markdown 3.3.3 pypi_0 pypi
markupsafe 1.1.1 pypi_0 pypi
matplotlib 3.3.3 pypi_0 pypi
missingno 0.4.2 pypi_0 pypi
mistune 0.8.4 pypi_0 pypi
nbclient 0.5.1 pypi_0 pypi
nbconvert 6.0.7 pypi_0 pypi
nbformat 5.0.8 pypi_0 pypi
nest-asyncio 1.4.3 pypi_0 pypi
networkx 2.5 pypi_0 pypi
notebook 6.1.5 pypi_0 pypi
numba 0.52.0 pypi_0 pypi
numpy 1.19.4 pypi_0 pypi
oauthlib 3.1.0 pypi_0 pypi
openssl 1.1.1i h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi
packaging 20.8 pypi_0 pypi
pandas 1.1.5 pypi_0 pypi
pandas-profiling 2.9.0 pypi_0 pypi
pandocfilters 1.4.3 pypi_0 pypi
parso 0.7.1 pypi_0 pypi
phik 0.10.0 pypi_0 pypi
pickleshare 0.7.5 pypi_0 pypi
pillow 8.0.1 pypi_0 pypi
pip 20.3.3 py37haa95532_0
prometheus-client 0.9.0 pypi_0 pypi
prompt-toolkit 3.0.8 pypi_0 pypi
protobuf 3.14.0 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pycparser 2.20 pypi_0 pypi
pygments 2.7.3 pypi_0 pypi
pyparsing 2.4.7 pypi_0 pypi
pyrsistent 0.17.3 pypi_0 pypi
python 3.7.3 h8c8aaf0_1
python-dateutil 2.8.1 pypi_0 pypi
pytz 2020.4 pypi_0 pypi
pywavelets 1.1.1 pypi_0 pypi
pywin32 300 pypi_0 pypi
pywinpty 0.5.7 pypi_0 pypi
pyyaml 5.3.1 pypi_0 pypi
pyzmq 20.0.0 pypi_0 pypi
qtconsole 5.0.1 pypi_0 pypi
qtpy 1.9.0 pypi_0 pypi
requests 2.25.1 pypi_0 pypi
requests-oauthlib 1.3.0 pypi_0 pypi
rsa 4.6 pypi_0 pypi
scikit-learn 0.23.2 pypi_0 pypi
scipy 1.4.1 pypi_0 pypi
seaborn 0.11.1 pypi_0 pypi
send2trash 1.5.0 pypi_0 pypi
setuptools 51.0.0 py37haa95532_2
six 1.15.0 pypi_0 pypi
sqlite 3.33.0 h2a8f88b_0
tangled-up-in-unicode 0.0.6 pypi_0 pypi
tensorboard 2.2.2 pypi_0 pypi
tensorflow-addons 0.11.2 pypi_0 pypi
tensorflow-gpu 2.2.0 pypi_0 pypi
tensorflow-gpu-estimator 2.2.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.9.1 pypi_0 pypi
testpath 0.4.4 pypi_0 pypi
threadpoolctl 2.1.0 pypi_0 pypi
tornado 6.1 pypi_0 pypi
tqdm 4.55.0 pypi_0 pypi
traitlets 5.0.5 pypi_0 pypi
typeguard 2.10.0 pypi_0 pypi
typing-extensions 3.7.4.3 pypi_0 pypi
urllib3 1.26.2 pypi_0 pypi
vc 14.2 h21ff451_1
visions 0.5.0 pypi_0 pypi
vs2015_runtime 14.27.29016 h5e58377_2
wcwidth 0.2.5 pypi_0 pypi
webencodings 0.5.1 pypi_0 pypi
werkzeug 1.0.1 pypi_0 pypi
wheel 0.36.2 pyhd3eb1b0_0
widgetsnbextension 3.5.1 pypi_0 pypi
wincertstore 0.2 py37_0
wrapt 1.12.1 pypi_0 pypi
xgboost 1.3.0.post0 pypi_0 pypi
zipp 3.4.0 pypi_0 pypi
zlib 1.2.11 h62dcd97_4
What is the problem?

Why don't you try to upgrade the package to the last version and see if it works.
pip install --upgrade tensorflow.
And also try to use python 3.8.5 or 3.9.0 instead of 3.7.3. Hope it works.

Related

Cannot install mapping for python 2 (ERROR: No matching distribution found for oldest-supported-numpy)

I have a strange problem, being unable to install Mapping library for python 2 via pip. Have the following error:
ERROR: Command errored out with exit status 1:
command: /home/pavloh/miniconda3/envs/deezer2/bin/python2.7 /home/pavloh/miniconda3/envs/deezer2/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-eWQJap/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools oldest-supported-numpy
cwd: None
Complete output (7 lines):
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting setuptools
Using cached setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
ERROR: Could not find a version that satisfies the requirement oldest-supported-numpy (from versions: none)
ERROR: No matching distribution found for oldest-supported-numpy
The numpy in installed in the environment:
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
ca-certificates 2022.9.24 ha878542_0 conda-forge
certifi 2019.11.28 py27h8c360ce_1 conda-forge
httplib2 0.20.4 pypi_0 pypi
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libffi 3.2.1 he1b5a44_1007 conda-forge
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgomp 12.1.0 h8d9b700_16 conda-forge
libsqlite 3.39.4 h753d276_0 conda-forge
libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge
libzlib 1.2.12 h166bdaf_4 conda-forge
ncurses 6.3 h27087fc_1 conda-forge
openssl 3.0.5 h166bdaf_2 conda-forge
pip 20.1.1 pyh9f0ad1d_0 conda-forge
pyparsing 2.4.7 pypi_0 pypi
python 2.7.18 h02575d3_0
python_abi 2.7 1_cp27mu conda-forge
readline 8.1.2 h0f457ee_0 conda-forge
setuptools 44.0.0 py27_0 conda-forge
sqlite 3.39.4 h4ff8645_0 conda-forge
tk 8.6.12 h27826a3_0 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
zlib 1.2.12 h166bdaf_4 conda-forge
Can someone advise on an issue?
oldest-supported-numpy doesn't work with Python 2.7. Even the oldest release 0.1 (Nov 26, 2019) requires Python >= 3.5.
But Mapping doesn't depend on oldest-supported-numpy, it requires just numpy. Perhaps oldest-supported-numpy is in your requirements.txt? Remove it or replace with just numpy.

Conda - import Geopandas error: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect

I'm trying to import the Geopandas module using Python 2.7. Example commands below:
conda create --channel conda-forge -n env_test python=2.7 geopandas
# OK
conda activate py27env
python --version
Python 2.7.15
# Import the module now.
python
import geopandas
Full error stack:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Administrator\miniconda3\envs\env_test\lib\site-
packages\geopandas\__init__.py", line 5, in <module>
from geopandas.io.file import read_file # noqa
File "C:\Users\Administrator\miniconda3\envs\env_test\lib\site-packages\geopandas\io\file.py",
line 6, in <module>
import fiona
File "C:\Users\Administrator\miniconda3\envs\env_test\lib\site-packages\fiona\__init__.py",
line 69, in <module>
from fiona.collection import Collection, BytesCollection, vsi_path
File "C:\Users\Administrator\miniconda3\envs\env_test\lib\site-packages\fiona\collection.py",
line 9, in <module>
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log or use the command-line
sxstrace.exe tool for more detail.
Is there way to fix this issue?
Using:
Miniconda 4.12.0
Output of Conda list:
# Name Version Build Channel
boost-cpp 1.70.0 h099cdad_2 conda-forge
ca-certificates 2022.6.15 h5b45459_0 conda-forge
certifi 2019.11.28 py27h8c360ce_1 conda-forge
click 7.1.2 pyh9f0ad1d_0 conda-forge
click-plugins 1.1.1 py_0 conda-forge
cligj 0.7.2 pyhd8ed1ab_1 conda-forge
curl 7.65.3 h2f83ebf_0 conda-forge
enum34 1.1.10 py27h8c360ce_1 conda-forge
expat 2.2.9 h2880e7c_2 conda-forge
fiona 1.7.13 py27_0 conda-forge
freexl 1.0.5 haa51a25_1002 conda-forge
gdal 2.2.2 py27h58389d3_1
geopandas 0.6.3 py_0 conda-forge
geos 3.6.2 heec837b_2
hdf4 4.2.13 ha32470c_1003 conda-forge
hdf5 1.10.1 vc9_2 conda-forge
intel-openmp 2022.1.0 h57928b3_3787 conda-forge
jpeg 9c h0c8e037_1001 conda-forge
kealib 1.4.7 vc9_4 conda-forge
krb5 1.16.4 h7fea353_0 conda-forge
libblas 3.9.0 8_mkl conda-forge
libcblas 3.9.0 8_mkl conda-forge
libcurl 7.65.3 h2f83ebf_0 conda-forge
libgdal 2.2.2 h75964b3_1
libiconv 1.15 h0c8e037_1006 conda-forge
libkml 1.3.0 h59e3451_1010 conda-forge
liblapack 3.9.0 8_mkl conda-forge
libnetcdf 4.4.1.1 vc9_10 conda-forge
libpng 1.6.37 h7a46e7a_0 conda-forge
libpq 11.5 h5e4800f_1 conda-forge
libspatialindex 1.8.5 h2880e7c_4 conda-forge
libspatialite 4.3.0a he01c9b4_1023 conda-forge
libssh2 1.8.2 hd5c6ab6_2 conda-forge
libtiff 4.0.10 h52ad3ab_1002 conda-forge
libxml2 2.9.10 h00b1425_0 conda-forge
mkl 2020.4 hb70f87d_311 conda-forge
munch 2.5.0 py_0 conda-forge
numpy 1.16.5 py27h0d21db5_0 conda-forge
openjpeg 2.3.1 hb90df43_1 conda-forge
openssl 1.1.1e h0c8e037_0 conda-forge
pandas 0.24.2 py27h0e003f4_0 conda-forge
pip 20.1.1 pyh9f0ad1d_0 conda-forge
proj4 4.9.3 h0c8e037_9 conda-forge
pyproj 1.9.5.1 py27he834874_1006 conda-forge
python 2.7.15 h2880e7c_1011_cpython conda-forge
python-dateutil 2.8.1 py_0 conda-forge
python_abi 2.7 1_cp27m conda-forge
pytz 2020.1 pyh9f0ad1d_0 conda-forge
rtree 0.8.3 py27_0
setuptools 44.0.0 py27_0 conda-forge
shapely 1.6.4 py27hc31c106_1000 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
sqlite 3.30.1 h0c8e037_0 conda-forge
tk 8.6.10 h0c8e037_0 conda-forge
vc 9 h2eaa2aa_6
vs2008_runtime 9.0.30729.6161 0 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
wincertstore 0.2 py27_1003 conda-forge
xerces-c 3.2.2 hc56fc5f_1004 conda-forge
xz 5.2.4 h3cc03e0_1001 conda-forge
zlib 1.2.11 h3cc03e0_1006 conda-forge
zstd 1.3.3 vc9_1 conda-forge
System OS is Windows Server 2019, but I have also tested on a Windows 10 workstation. Same error occurs when importing Geopandas. The issue is not present when using a newer version of Python, for example Python 3.9.

SageMaker Studio PyTorch 1.8 kernel has no PyTorch, Numpy, or Matplotlib module

I'm working with SageMaker studio with the following options:
kernel: PyTorch 1.8 Python 3.6 GPU optimized.
instance: ml.g4dn.xlarge
When running import torch numpy, matplotlib or PIL, I'm getting the No module named 'X' error. No matter when using pip install in a cell above, it will not be imported. Is this a problem only I am encountering with the new PyTorch 1.8 kernel? It also happens with the CPU-optimized version. However, PyTorch 1.6 kernel does not throw an error.
When running conda list, I get the following output:
# packages in environment at /opt/conda:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 4.5 1_gnu
apex 0.1 pypi_0 pypi
argon2-cffi 21.1.0 pypi_0 pypi
argparse 1.4.0 pypi_0 pypi
async-generator 1.10 pypi_0 pypi
attrs 21.2.0 pypi_0 pypi
autovizwidget 0.19.1 pypi_0 pypi
aws-cdk-assets 1.128.0 pypi_0 pypi
aws-cdk-aws-apigateway 1.128.0 pypi_0 pypi
aws-cdk-aws-applicationautoscaling 1.128.0 pypi_0 pypi
aws-cdk-aws-autoscaling 1.128.0 pypi_0 pypi
aws-cdk-aws-autoscaling-common 1.128.0 pypi_0 pypi
aws-cdk-aws-autoscaling-hooktargets 1.128.0 pypi_0 pypi
aws-cdk-aws-batch 1.128.0 pypi_0 pypi
aws-cdk-aws-certificatemanager 1.128.0 pypi_0 pypi
aws-cdk-aws-cloudformation 1.128.0 pypi_0 pypi
aws-cdk-aws-cloudfront 1.128.0 pypi_0 pypi
aws-cdk-aws-cloudwatch 1.128.0 pypi_0 pypi
aws-cdk-aws-codebuild 1.128.0 pypi_0 pypi
aws-cdk-aws-codecommit 1.128.0 pypi_0 pypi
aws-cdk-aws-codeguruprofiler 1.128.0 pypi_0 pypi
aws-cdk-aws-codestarnotifications 1.128.0 pypi_0 pypi
aws-cdk-aws-cognito 1.128.0 pypi_0 pypi
aws-cdk-aws-dynamodb 1.128.0 pypi_0 pypi
aws-cdk-aws-ec2 1.128.0 pypi_0 pypi
aws-cdk-aws-ecr 1.128.0 pypi_0 pypi
aws-cdk-aws-ecr-assets 1.128.0 pypi_0 pypi
aws-cdk-aws-ecs 1.128.0 pypi_0 pypi
aws-cdk-aws-efs 1.128.0 pypi_0 pypi
aws-cdk-aws-elasticloadbalancing 1.128.0 pypi_0 pypi
aws-cdk-aws-elasticloadbalancingv2 1.128.0 pypi_0 pypi
aws-cdk-aws-events 1.128.0 pypi_0 pypi
aws-cdk-aws-fsx 1.128.0 pypi_0 pypi
aws-cdk-aws-globalaccelerator 1.128.0 pypi_0 pypi
aws-cdk-aws-iam 1.128.0 pypi_0 pypi
aws-cdk-aws-imagebuilder 1.128.0 pypi_0 pypi
aws-cdk-aws-kinesis 1.128.0 pypi_0 pypi
aws-cdk-aws-kms 1.128.0 pypi_0 pypi
aws-cdk-aws-lambda 1.128.0 pypi_0 pypi
aws-cdk-aws-logs 1.128.0 pypi_0 pypi
aws-cdk-aws-route53 1.128.0 pypi_0 pypi
aws-cdk-aws-route53-targets 1.128.0 pypi_0 pypi
aws-cdk-aws-s3 1.128.0 pypi_0 pypi
aws-cdk-aws-s3-assets 1.128.0 pypi_0 pypi
aws-cdk-aws-sam 1.128.0 pypi_0 pypi
aws-cdk-aws-secretsmanager 1.128.0 pypi_0 pypi
aws-cdk-aws-servicediscovery 1.128.0 pypi_0 pypi
aws-cdk-aws-signer 1.128.0 pypi_0 pypi
aws-cdk-aws-sns 1.128.0 pypi_0 pypi
aws-cdk-aws-sns-subscriptions 1.128.0 pypi_0 pypi
aws-cdk-aws-sqs 1.128.0 pypi_0 pypi
aws-cdk-aws-ssm 1.128.0 pypi_0 pypi
aws-cdk-cloud-assembly-schema 1.128.0 pypi_0 pypi
aws-cdk-core 1.128.0 pypi_0 pypi
aws-cdk-custom-resources 1.128.0 pypi_0 pypi
aws-cdk-cx-api 1.128.0 pypi_0 pypi
aws-cdk-region-info 1.128.0 pypi_0 pypi
aws-parallelcluster 3.0.0 pypi_0 pypi
awscli 1.20.63 pypi_0 pypi
awsio 0.0.1 pypi_0 pypi
backcall 0.2.0 py_0 anaconda
bcrypt 3.2.0 pypi_0 pypi
beautifulsoup4 4.10.0 pypi_0 pypi
blas 1.0 openblas anaconda
bleach 4.1.0 pypi_0 pypi
blis 0.7.4 pypi_0 pypi
bokeh 2.3.3 pypi_0 pypi
boto3 1.18.63 pypi_0 pypi
botocore 1.21.63 pypi_0 pypi
bottleneck 1.3.2 pypi_0 pypi
brotlipy 0.7.0 py36h8f6f2f9_1001 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
ca-certificates 2021.9.30 h06a4308_1
cairo 1.16.0 h18b612c_1001 conda-forge
catalogue 2.0.6 pypi_0 pypi
cattrs 1.0.0 pypi_0 pypi
certifi 2021.5.30 py36h06a4308_0
cffi 1.14.6 py36hc120d54_0 conda-forge
chardet 4.0.0 py36h5fab9bb_1 conda-forge
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 8.0.3 pypi_0 pypi
clickclick 20.10.2 pypi_0 pypi
cloudpickle 2.0.0 pypi_0 pypi
cmake 3.18.2.post1 pypi_0 pypi
colorama 0.4.3 pypi_0 pypi
conda 4.10.3 py36h06a4308_0
conda-package-handling 1.7.3 py36h8f6f2f9_0 conda-forge
connexion 2.7.0 pypi_0 pypi
constructs 3.3.161 pypi_0 pypi
contextvars 2.4 pypi_0 pypi
cryptography 35.0.0 py36hb60f036_0 conda-forge
cycler 0.10.0 pypi_0 pypi
cymem 2.0.5 pypi_0 pypi
cython 0.29.21 py36he6710b0_0 anaconda
dataclasses 0.8 pypi_0 pypi
decorator 4.4.2 py_0 anaconda
defusedxml 0.7.1 pypi_0 pypi
dgl-cuda11.1 0.6.1 py36_0 dglteam
dill 0.3.4 pypi_0 pypi
docutils 0.15.2 pypi_0 pypi
entrypoints 0.3 pypi_0 pypi
fastai 1.0.61 pypi_0 pypi
fastprogress 1.0.0 pypi_0 pypi
ffmpeg 4.0 hcdf2ecd_0
filelock 3.3.1 pypi_0 pypi
flask 2.0.2 pypi_0 pypi
fontconfig 2.13.1 hba837de_1005 conda-forge
freeglut 3.2.1 h9c3ff4c_2 conda-forge
freetype 2.10.4 h0708190_1 conda-forge
fsspec 2021.10.1 pypi_0 pypi
future 0.18.2 py36_1 anaconda
gevent 21.8.0 pypi_0 pypi
glib 2.69.1 h5202010_0
google-pasta 0.2.0 pypi_0 pypi
graphite2 1.3.13 h58526e2_1001 conda-forge
greenlet 1.1.2 pypi_0 pypi
h5py 2.8.0 py36h989c5e5_3
harfbuzz 1.8.8 hffaf4a1_0
hdf5 1.10.2 hc401514_3 conda-forge
hdijupyterutils 0.19.1 pypi_0 pypi
horovod 0.21.3 pypi_0 pypi
icu 58.2 hf484d3e_1000 conda-forge
idna 2.10 pyhd3eb1b0_0
imageio 2.9.0 pypi_0 pypi
immutables 0.16 pypi_0 pypi
importlib-metadata 4.8.1 pypi_0 pypi
importlib-resources 5.2.2 pypi_0 pypi
inflection 0.5.1 pypi_0 pypi
inotify-simple 1.2.1 pypi_0 pypi
intel-openmp 2020.2 254 anaconda
ipykernel 5.5.6 pypi_0 pypi
ipython 7.16.1 py36h5ca1d4c_0 anaconda
ipython_genutils 0.2.0 py36_0 anaconda
ipywidgets 7.6.5 pypi_0 pypi
isodate 0.6.0 pypi_0 pypi
itsdangerous 2.0.1 pypi_0 pypi
jasper 2.0.14 hd8c5072_2
jedi 0.18.0 py36h06a4308_1
jinja2 3.0.2 pypi_0 pypi
jmespath 0.10.0 pypi_0 pypi
joblib 1.0.1 pyhd3eb1b0_0
jpeg 9d h36c2ea0_0 conda-forge
jsii 1.39.0 pypi_0 pypi
jsonpatch 1.32 pypi_0 pypi
jsonpointer 2.1 pypi_0 pypi
jsonschema 3.2.0 pypi_0 pypi
jupyter 1.0.0 pypi_0 pypi
jupyter-client 7.0.6 pypi_0 pypi
jupyter-console 6.4.0 pypi_0 pypi
jupyter-core 4.8.1 pypi_0 pypi
jupyterlab-pygments 0.1.2 pypi_0 pypi
jupyterlab-widgets 1.0.2 pypi_0 pypi
kiwisolver 1.3.1 pypi_0 pypi
ld_impl_linux-64 2.35.1 h7274673_9
libffi 3.3 he6710b0_2
libgcc 7.2.0 h69d50b8_2
libgcc-ng 9.3.0 h5101ec6_17
libgfortran 3.0.0 1 conda-forge
libgfortran-ng 7.3.0 hdf63c60_0 anaconda
libglu 9.0.0 he1b5a44_1001 conda-forge
libgomp 9.3.0 h5101ec6_17
libopenblas 0.3.10 h5a2b251_0 anaconda
libopencv 3.4.2 hb342d67_1
libopus 1.3.1 h7f98852_1 conda-forge
libpng 1.6.37 h21135ba_2 conda-forge
libstdcxx-ng 9.3.0 hd4cf53a_17
libtiff 4.0.10 hc3755c2_1005 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libvpx 1.7.0 h439df22_0
libxcb 1.13 h7f98852_1003 conda-forge
libxml2 2.9.12 h03d6c58_0
llvmlite 0.36.0 pypi_0 pypi
lz4-c 1.9.3 h9c3ff4c_1 conda-forge
magma-cuda111 2.5.2 1 pytorch
markupsafe 2.0.1 pypi_0 pypi
marshmallow 3.13.0 pypi_0 pypi
matplotlib 3.3.4 pypi_0 pypi
mistune 0.8.4 pypi_0 pypi
mkl 2020.2 256 anaconda
mkl-include 2020.2 256 anaconda
mock 4.0.3 pypi_0 pypi
mpi4py 3.0.3 pypi_0 pypi
multiprocess 0.70.12.2 pypi_0 pypi
murmurhash 1.0.5 pypi_0 pypi
nbclient 0.5.4 pypi_0 pypi
nbconvert 6.0.7 pypi_0 pypi
nbformat 5.1.3 pypi_0 pypi
ncurses 6.2 he6710b0_1
nest-asyncio 1.5.1 pypi_0 pypi
networkx 2.5.1 pyhd3eb1b0_0
nose 1.3.7 pypi_0 pypi
notebook 6.4.4 pypi_0 pypi
numba 0.53.1 pypi_0 pypi
numexpr 2.7.3 pypi_0 pypi
numpy 1.19.1 py36h30dfecb_0 anaconda
numpy-base 1.19.1 py36h75fe3a5_0 anaconda
nvidia-ml-py3 7.352.0 pypi_0 pypi
openapi-schema-validator 0.1.5 pypi_0 pypi
openapi-spec-validator 0.3.1 pypi_0 pypi
opencv 3.4.2 py36h6fd60c2_1
opencv-python 4.5.3.56 pypi_0 pypi
openssl 1.1.1l h7f8727e_0
packaging 21.0 pypi_0 pypi
pandas 1.1.5 py36ha9443f7_0
pandocfilters 1.5.0 pypi_0 pypi
paramiko 2.8.0 pypi_0 pypi
parso 0.8.0 py_0 anaconda
pathos 0.2.8 pypi_0 pypi
pathy 0.6.0 pypi_0 pypi
pcre 8.45 h9c3ff4c_0 conda-forge
pexpect 4.8.0 py36_0 anaconda
pickleshare 0.7.5 py36_0 anaconda
pillow 8.3.2 pypi_0 pypi
pip 21.3 pyhd8ed1ab_0 conda-forge
pixman 0.38.0 h516909a_1003 conda-forge
plotly 5.3.1 pypi_0 pypi
pox 0.3.0 pypi_0 pypi
ppft 1.6.6.4 pypi_0 pypi
preshed 3.0.5 pypi_0 pypi
progress 1.6 pypi_0 pypi
prometheus-client 0.11.0 pypi_0 pypi
prompt-toolkit 3.0.8 py_0 anaconda
protobuf 3.18.1 pypi_0 pypi
protobuf3-to-dict 0.1.5 pypi_0 pypi
psutil 5.8.0 pypi_0 pypi
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
ptyprocess 0.6.0 py36_0 anaconda
publication 0.0.3 pypi_0 pypi
pure-sasl 0.6.2 pypi_0 pypi
py-opencv 3.4.2 py36hb342d67_1
pyarrow 5.0.0 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pybind11 2.8.0 pypi_0 pypi
pycosat 0.6.3 py36h8f6f2f9_1006 conda-forge
pycparser 2.20 py_2
pydantic 1.8.2 pypi_0 pypi
pyfunctional 1.4.3 pypi_0 pypi
pygments 2.7.1 py_0 anaconda
pyhive 0.6.4 pypi_0 pypi
pyinstrument 3.4.2 pypi_0 pypi
pyinstrument-cext 0.2.4 pypi_0 pypi
pykerberos 1.2.1 pypi_0 pypi
pynacl 1.4.0 pypi_0 pypi
pyopenssl 19.1.0 py_1 anaconda
pyparsing 2.4.7 pypi_0 pypi
pyrsistent 0.18.0 pypi_0 pypi
pysocks 1.7.1 py36h5fab9bb_3 conda-forge
python 3.6.13 hffdb5ce_0_cpython conda-forge
python-dateutil 2.8.2 pyhd3eb1b0_0
python_abi 3.6 2_cp36m conda-forge
pytz 2021.3 pyhd3eb1b0_0
pyyaml 5.4.1 pypi_0 pypi
pyzmq 22.3.0 pypi_0 pypi
qtconsole 5.1.1 pypi_0 pypi
qtpy 1.11.2 pypi_0 pypi
readline 8.1 h27cfd23_0
requests 2.26.0 pyhd3eb1b0_0
requests-kerberos 0.12.0 pypi_0 pypi
retrying 1.3.3 pypi_0 pypi
rsa 4.7.2 pypi_0 pypi
ruamel_yaml 0.15.100 py36h27cfd23_0
s3fs 0.4.2 pypi_0 pypi
s3transfer 0.5.0 pypi_0 pypi
sagemaker 2.63.1 pypi_0 pypi
sagemaker-experiments 0.1.35 pypi_0 pypi
sagemaker-pytorch-training 2.4.0 pypi_0 pypi
sagemaker-studio-analytics-extension 0.0.2 pypi_0 pypi
sagemaker-studio-sparkmagic-lib 0.1.3 pypi_0 pypi
sagemaker-training 3.9.2 pypi_0 pypi
sasl 0.3.1 pypi_0 pypi
scikit-learn 0.24.2 py36ha9443f7_0
scipy 1.5.4 pypi_0 pypi
seaborn 0.11.2 pypi_0 pypi
send2trash 1.8.0 pypi_0 pypi
setuptools 49.6.0 py36h5fab9bb_3 conda-forge
shap 0.39.0 pypi_0 pypi
six 1.16.0 pyhd3eb1b0_0
sklearn 0.0 pypi_0 pypi
slicer 0.0.7 pypi_0 pypi
smart-open 5.2.1 pypi_0 pypi
smclarify 0.2 pypi_0 pypi
smdebug 1.0.9 pypi_0 pypi
smdebug-rulesconfig 1.0.1 pypi_0 pypi
smdistributed-dataparallel 1.2.0 pypi_0 pypi
smdistributed-modelparallel 1.3.1 pypi_0 pypi
soupsieve 2.2.1 pypi_0 pypi
spacy 3.1.3 pypi_0 pypi
spacy-legacy 3.0.8 pypi_0 pypi
sparkmagic 0.19.1 pypi_0 pypi
sqlite 3.36.0 hc218d9a_0
srsly 2.4.1 pypi_0 pypi
tabulate 0.8.9 pypi_0 pypi
tenacity 8.0.1 pypi_0 pypi
terminado 0.12.1 pypi_0 pypi
testpath 0.5.0 pypi_0 pypi
thinc 8.0.10 pypi_0 pypi
threadpoolctl 2.2.0 pyh0d69192_0
thrift 0.15.0 pypi_0 pypi
thrift-sasl 0.4.3 pypi_0 pypi
tk 8.6.10 hbc83047_0
torch 1.8.1 pypi_0 pypi
torchfile 0.1.0 pypi_0 pypi
torchnet 0.0.4 pypi_0 pypi
torchvision 0.9.1 pypi_0 pypi
tornado 6.1 pypi_0 pypi
tqdm 4.61.2 pyhd3eb1b0_1
traitlets 4.3.3 py36_0 anaconda
typer 0.4.0 pypi_0 pypi
typing 3.7.4.3 py36_0 anaconda
typing-extensions 3.10.0.2 pypi_0 pypi
tzdata 2021a h52ac0ba_0
urllib3 1.26.6 pyhd3eb1b0_1
visdom 0.1.8.9 pypi_0 pypi
wasabi 0.8.2 pypi_0 pypi
wcwidth 0.2.5 py_0 anaconda
webencodings 0.5.1 pypi_0 pypi
websocket-client 1.2.1 pypi_0 pypi
werkzeug 2.0.2 pypi_0 pypi
wheel 0.36.2 pyhd3eb1b0_0
widgetsnbextension 3.5.1 pypi_0 pypi
xorg-fixesproto 5.0 h7f98852_1002 conda-forge
xorg-inputproto 2.3.2 h7f98852_1002 conda-forge
xorg-kbproto 1.0.7 h7f98852_1002 conda-forge
xorg-libice 1.0.10 h7f98852_0 conda-forge
xorg-libsm 1.2.3 hd9c2040_1000 conda-forge
xorg-libx11 1.7.2 h7f98852_0 conda-forge
xorg-libxau 1.0.9 h7f98852_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xorg-libxext 1.3.4 h7f98852_1 conda-forge
xorg-libxfixes 5.0.3 h7f98852_1004 conda-forge
xorg-libxi 1.7.10 h7f98852_0 conda-forge
xorg-libxrender 0.9.10 h7f98852_1003 conda-forge
xorg-renderproto 0.11.1 h7f98852_1002 conda-forge
xorg-xextproto 7.3.0 h7f98852_1002 conda-forge
xorg-xproto 7.0.31 h7f98852_1007 conda-forge
xz 5.2.5 h7b6447c_0
yaml 0.2.5 h7b6447c_0
zipp 3.6.0 pypi_0 pypi
zlib 1.2.11 h7b6447c_3
zope-event 4.5.0 pypi_0 pypi
zope-interface 5.4.0 pypi_0 pypi
zstd 1.4.9 ha95c52a_0 conda-forge
I have followed your explanation to recreate the No module named 'X'. After instance lunch, I could import numpy, matplotlib and PIL but could not import torch because torch is not initially installed.
I followed these steps to install and import torch:
Shut down your instance completely.
Attach the kernel to your notebook again
Lunch your ml.g4dn.xlarge instance again
pip3 install torch
import torch

pip could not find a version that satisfies the requirement django==2.2.1

I just have changed my os to linux and I want to install django.
But I am unable to install the latest version of django.
I have tried
pip install django However it installed django 1.11.11 which is not what I need.
I also upgraded my pip to 19.1
However still I am unable to run the command pip install django==2.2.1
When I run the command this is what I see
$ pip install django==2.2.1
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting django==2.2.1
ERROR: Could not find a version that satisfies the requirement django==2.2.1 (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11, 1.5.12, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.6.10, 1.6.11, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.7.11, 1.8a1, 1.8b1, 1.8b2, 1.8rc1, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.8.10, 1.8.11, 1.8.12, 1.8.13, 1.8.14, 1.8.15, 1.8.16, 1.8.17, 1.8.18, 1.8.19, 1.9a1, 1.9b1, 1.9rc1, 1.9rc2, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.9.9, 1.9.10, 1.9.11, 1.9.12, 1.9.13, 1.10a1, 1.10b1, 1.10rc1, 1.10, 1.10.1, 1.10.2, 1.10.3, 1.10.4, 1.10.5, 1.10.6, 1.10.7, 1.10.8, 1.11a1, 1.11b1, 1.11rc1, 1.11, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.11.6, 1.11.7, 1.11.8, 1.11.9, 1.11.10, 1.11.11, 1.11.12, 1.11.13, 1.11.14, 1.11.15, 1.11.16, 1.11.17, 1.11.18, 1.11.20)
ERROR: No matching distribution found for django==2.2.1
Django versions 2 are compatible only with python3. So to install in your system install it with
pip3 install django
or if you want to create a virtual environment
python3 -m venv virtualenv
source virtualenv/bin/activate
pip install django (this installs with python3 pip)
It seems like you are using Python 2.7, and the last Django version to support Python 2 is Django 1.11. To use the newer Django versions you need to uprade to Python 3.
Chances are you already have Python 3 shipped with your Linux distro, you can check by running python3 in your shell. It is recommended that you create a virtual env for your project. You can create a Python 3 virtual env with the following command -
python3 -m venv env
Activate your env -
source ./env/bin/activate
Now you should be able to install newer Django version in your virtual env -
pip install django==2.2.1
This link might be of help in upgrading your Python version - https://docs.python-guide.org/starting/install3/linux/
Try with pip install -U django==2.2.1
If you are in Windows and the error mentions something like:
... Connection aborted.', PermissionError ...
Make sure you open the CMD with "Run as Administrator"

IPython - ipython_notebook_config.py missing

When I'm creating a profile, only 2 config files are created, instead of 5.
ipython profile create test_3
[ProfileCreate] Generating default config file: u'/root/.ipython/profile_test_3/ipython_config.py'
[ProfileCreate] Generating default config file: u'/root/.ipython/profile_test_3/ipython_kernel_config.py'
I have 2 versions of python installed, 2.6.6 and 2.7. I have created an alias for python to use /usr/bin/python2.7
I have installed both easy_install and pip
The full list of packages installed with pip:
alabaster (0.7.6)
appnope (0.1.0)
Babel (2.0)
backports.ssl-match-hostname (3.4.0.2)
certifi (2015.4.28)
decorator (4.0.2)
Django (1.8.3)
docutils (0.12)
funcsigs (0.4)
functools32 (3.2.3.post2)
gnureadline (6.3.3)
ipykernel (4.0.3)
ipyparallel (4.0.0)
ipython (4.0.0)
ipython-genutils (0.1.0)
ipywidgets (4.0.2)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter-client (4.0.0)
jupyter-core (4.0.2)
MarkupSafe (0.23)
matplotlib (1.4.3)
mistune (0.7)
mock (1.3.0)
nbconvert (4.0.0)
nbformat (4.0.0)
nose (1.3.7)
notebook (4.0.1)
numpy (1.9.2)
numpydoc (0.5)
pandas (0.16.2)
path.py (7.6)
pbr (1.4.0)
pexpect (3.3)
pickleshare (0.5)
pip (7.1.0)
ptyprocess (0.5)
Pygments (2.0.2)
pyparsing (2.0.3)
pyreadline (2.0)
python-dateutil (2.4.2)
pytz (2015.4)
pyzmq (14.7.0)
qtconsole (4.0.0)
requests (2.7.0)
scikit-learn (0.16.1)
scipy (0.16.0)
setuptools (18.1)
simplegeneric (0.8.1)
six (1.9.0)
snowballstemmer (1.2.0)
Sphinx (1.3.1)
sphinx-rtd-theme (0.1.8)
terminado (0.5)
testpath (0.2)
tornado (4.2.1)
traitlets (4.0.0)
Am I missing something? Can someone link me to a ipython_notebook_config.py file so i can use that in the default profile? Would that be wrong to enforce?
I have added a ipython_notebook_config.py from web and edit it..and it seems it's ignoring it..I'm specifying port 8888 and it's listing port 8889. Furthermore I can't connect to that notebook.
Things have changed in jupyter since "the big switch", where notebook configurations have migrated to the .jupyter folder. If you already have an existing ipython notebook configuration, try doing:
jupyter migrate
if your notebook config is missing (which was my case when starting ipython to create a profile), you can generate a jupyter config with the following:
jupyter notebook --generate-config
this should create a ~/.jupyter/jupyter_notebook_config.py file with relevant notebook settings ready to be uncommented/modified such as ports and passwords.
It should be noted for profiles, jupyter no longer supports multiple profiles, but they can be referenced via command line (see http://jupyter.readthedocs.org/en/latest/migrating.html#profiles for more info)
documentation: http://jupyter.readthedocs.org/en/latest/migrating.html
You can skip creating a profile and pass the parameters directly:
IPYTHON_OPTS="notebook --no-browser --ip='*' --port=8889" $SPARK_HOME/bin/pyspark