In an otherwise stable environment, when I call cluster.connect(), the code just hangs indefinitely, no errors or timeout messages. The connection is contained inside a Nameko service. I suspect it is related to the Nameko service code, particularly the monkey patching involved, since the otherwise identical code works fine outside of a Nameko service.
I should note this only seems to be a problem with Python 3.7 and Cassandra 3.18. With Python 3.6 and Cassandra 3.16, this works fine.
Here is a code snippet:
import logging
from cassandra import ConsistencyLevel, cluster
from nameko.extensions import DependencyProvider
from pipeline import config
class CassandraConnection(DependencyProvider):
"""
Encapsulate a cassandra session with an open connection.
"""
def __init__(self):
self._logger = logging.getLogger('cassandra_writer')
self._cluster = None
self._session = None
def setup(self):
self._cluster = cluster.Cluster(config.get('cassandra', 'node').split(','))
self._session = self._cluster.connect()
self._session.set_keyspace(config.get('cassandra', 'keyspace_ts'))
self._session.default_consistency_level = ConsistencyLevel.QUORUM
def get_dependency(self, worker_ctx):
return self._session
Here is the complete startup log:
INFO starting services: cassandra_writer
DEBUG starting <ServiceContainer [cassandra_writer] at 0x7fa5d1411b70>
DEBUG starting <ExchangeEventHandler [cassandra_writer.write_objects] at 0x7fa5bc685ba8>
DEBUG registering provider <ExchangeEventHandler [cassandra_writer.write_objects] at 0x7fa5bc685ba8> for <QueueConsumer at 0x7fa5bc685c18>
DEBUG Start from server, version: 0.9, properties: {'capabilities': {'publisher_confirms': True, 'exchange_exchange_bindings': True, 'basic.nack': True, 'consumer_cancel_notify': True, 'connection.blocked': True, 'consumer_priorities': True, 'authentication_failure_close': True, 'per_consumer_qos': True, 'direct_reply_to': True}, 'cluster_name': 'rabbit#USRMQQA03.alphanetcapital.com', 'copyright': 'Copyright (C) 2007-2019 Pivotal Software, Inc.', 'information': 'Licensed under the MPL. See http://www.rabbitmq.com/', 'platform': 'Erlang/OTP 21.2.6', 'product': 'RabbitMQ', 'version': '3.7.13'}, mechanisms: [b'AMQPLAIN', b'PLAIN'], locales: ['en_US']
WARNING Cluster.__init__ called with contact_points specified, but no load_balancing_policy. In the next major version, this will raise an error; please specify a load-balancing policy. (contact_points = ['uscstardev01', 'uscstardev02', 'uscstardev03'], lbp = None)
INFO <class 'cassandra.io.eventletreactor.EventletConnection'>
DEBUG Connecting to cluster, contact points: ['uscstardev01', 'uscstardev02', 'uscstardev03']; protocol version: 4
DEBUG Host 172.16.9.29:9042 is now marked up
DEBUG Host 172.16.9.30:9042 is now marked up
DEBUG Host 172.16.9.31:9042 is now marked up
DEBUG [control connection] Opening new connection to 172.16.9.31:9042
DEBUG Sending initial options message for new connection (140349806704400) to 172.16.9.31:9042
DEBUG Received options response on new connection (140349806704400) from 172.16.9.31:9042
DEBUG Sending StartupMessage on <EventletConnection(140349806704400) 172.16.9.31:9042>
DEBUG Sent StartupMessage on <EventletConnection(140349806704400) 172.16.9.31:9042>
DEBUG Got ReadyMessage on new connection (140349806704400) from 172.16.9.31:9042
DEBUG [control connection] Established new connection <EventletConnection(140349806704400) 172.16.9.31:9042>, registering watchers and refreshing schema and topology
DEBUG [control connection] Refreshing node list and token map using preloaded results
INFO Using datacenter 'devus01' for DCAwareRoundRobinPolicy (via host '172.16.9.31:9042'); if incorrect, please specify a local_dc to the constructor, or limit contact points to local cluster nodes
DEBUG [control connection] Finished fetching ring info
DEBUG [control connection] Rebuilding token map due to topology changes
DEBUG Control connection created
DEBUG Initializing connection for host 172.16.9.29:9042
DEBUG Sending initial options message for new connection (140349806806968) to 172.16.9.29:9042
DEBUG Initializing connection for host 172.16.9.30:9042
DEBUG Sending initial options message for new connection (140349805903544) to 172.16.9.30:9042
DEBUG Received options response on new connection (140349806806968) from 172.16.9.29:9042
DEBUG Sending StartupMessage on <EventletConnection(140349806806968) 172.16.9.29:9042>
DEBUG Sent StartupMessage on <EventletConnection(140349806806968) 172.16.9.29:9042>
DEBUG Received options response on new connection (140349805903544) from 172.16.9.30:9042
DEBUG Sending StartupMessage on <EventletConnection(140349805903544) 172.16.9.30:9042>
DEBUG Sent StartupMessage on <EventletConnection(140349805903544) 172.16.9.30:9042>
DEBUG Got ReadyMessage on new connection (140349806806968) from 172.16.9.29:9042
DEBUG Finished initializing connection for host 172.16.9.29:9042
DEBUG Added pool for host 172.16.9.29:9042 to session
DEBUG Initializing connection for host 172.16.9.31:9042
DEBUG Got ReadyMessage on new connection (140349805903544) from 172.16.9.30:9042
DEBUG Finished initializing connection for host 172.16.9.30:9042
DEBUG Added pool for host 172.16.9.30:9042 to session
The last message is that last one that appears before the process simply hangs.
Here is my environment:
adyne_services_common 0.1 py37_0
alphasuite 1.79a1 py37_0
amqp 2.3.2 py_1
appdirs 1.4.3 py37h28b3542_0
arrow 0.12.1 py37_1
asn1crypto 0.24.0 py37_0
attrs 18.2.0 py37h28b3542_0
backcall 0.1.0 py37_0
backports 1 py37_1
backports.os 0.1.1 py37_0
bcrypt 3.1.5 py37h7b6447c_0
beautifulsoup4 4.6.3 py37_0
billiard 3.6.0.0 py37h516909a_0
blas 1 mkl
blpapi 3.12.2 py37_blpapicpp3.12.2.1_1
ca-certificates 2018.03.07 0
cached-property 1.5.1 py37_0
cachetools 3.0.0 py_0
cassandra-driver 3.18.0 py37_0
celery 4.3.0 py_1
certifi 2018.11.29 py37_0
cffi 1.11.5 py37he75722e_1
chardet 3.0.4 py37_1
conda 4.5.12 py37_0
conda-env 2.6.0 1
cryptography 2.4.2 py37h1ba5d50_0
cycler 0.10.0 py37_0
cython 0.28.5 py37hf484d3e_0
dbus 1.13.2 h714fa37_1
decorator 4.3.0 py37_0
defusedxml 0.5.0 py37_1
distro 1.4.0 py_0
elasticsearch 5.4.0 py37_0
et_xmlfile 1.0.1 py37_0
eventlet 0.23.0 py37_1000
expat 2.2.6 he6710b0_0
fontconfig 2.13.0 h9420a91_0
freetype 2.9.1 h8a8886c_1
glib 2.56.2 hd408876_0
greenlet 0.4.15 py37h7b6447c_0
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
icu 58.2 h211956c_0
idna 2.8 py37_0
importlib_metadata 0.6 py37_0
intel-openmp 2019.1 144
ipython 7.2.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
isodate 0.6.0 py37_0
jdcal 1.4 py37_0
jedi 0.13.2 py37_0
jinja2 2.1 py37_0
jpeg 9b habf39ab_1
jsonschema 2.6.0 py37_0
kiwisolver 1.0.1 py37hf484d3e_0
kombu 4.6.1 py_0
krb5 1.16.1 h173b8e3_7
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 h4deb6c0_3
libgcc-ng 8.2.0 hdf63c60_1
libgfortran-ng 7.3.0 hdf63c60_0
libpng 1.6.35 hbc83047_0
libsodium 1.0.16 h1bed415_0
libstdcxx-ng 8.2.0 hdf63c60_1
libuuid 1.0.3 h1bed415_2
libxcb 1.13 h1bed415_1
libxml2 2.9.8 h26e45fe_1
libxslt 1.1.32 h1312cb7_0
lxml 4.2.5 py37hefd8a0e_0
lz4 2.1.6 py37h7b6447c_0
lz4-c 1.8.1.2 h14c3975_0
markupsafe 1.1.0 py37h7b6447c_0
matplotlib 3.0.2 py37h5429711_0
mkl 2019.1 144
mkl_fft 1.0.6 py37hd81dba3_0
mkl_random 1.0.2 py37hd81dba3_0
mock 2.0.0 py37_0
mysqlclient 1.3.14 ubuntu1404
nameko 2.11.0 py37_3
ncurses 6.1 he6710b0_1
numpy 1.15.4 py37h7e9f1db_0
numpy-base 1.15.4 py37hde5b4d6_0
openjdk 8.0.121 1
openpyxl 2.5.12 py37_0
openssl 1.1.1 h7b6447c_0
pandas 0.23.4 py37h04863e7_0
paramiko 2.4.2 py37_0
parso 0.3.1 py37_0
path.py 11.5.0 py37_0
patsy 0.5.1 py37_0
pbr 5.1.1 py37_0
pcre 8.42 h439df22_0
pexpect 4.6.0 py37_0
pickleshare 0.7.5 py37_0
pika 0.12.0 py_1
pip 18.1 py37_0
pipeline 0.68a1 py37_1
prompt_toolkit 2.0.7 py37_0
ptyprocess 0.6.0 py37_0
pyasn1 0.4.5 py_0
pycosat 0.6.3 py37h14c3975_0
pycparser 2.19 py37_0
pygments 2.3.1 py37_0
pykerberos 1.2.1 py37h14c3975_0
pynacl 1.2.1 py37h14c3975_0
pyodbc 4.0.25 py37he6710b0_0
pyopenssl 18.0.0 py37_0
pyparsing 2.3.0 py37_0
pyqt 5.9.2 py37h05f1152_2
pysocks 1.6.8 py37_0
python 3.7.1 h0371630_7
python-dateutil 2.7.5 py37_0
pytz 2018.7 py37_0
pyvolar 3.10.8 py37_1
pyyaml 3.13 py37h14c3975_0
qt 5.9.7 h5867ecd_1
readline 7 h7b6447c_5
redis-py 3.2.0 py_0
requests 2.21.0 py37_0
requests-kerberos 0.12.0 py37_0
requests-toolbelt 0.8.0 py37_0
ruamel_yaml 0.15.46 py37h14c3975_0
scipy 1.1.0 py37h7c811a0_2
seaborn 0.9.0 py37_0
setuptools 40.6.3 py37_0
simplejson 3.16.0 py37h14c3975_0
sip 4.19.8 py37hf484d3e_0
six 1.12.0 py37_0
sqlalchemy 1.2.15 py37h7b6447c_0
sqlite 3.26.0 h7b6447c_0
statsmodels 0.9.0 py37h035aef0_0
tabula-py 1.1.1 py37_1000
tk 8.6.8 hbc83047_0
tornado 5.1.1 py37h7b6447c_0
traitlets 4.3.2 py37_0
ujson 1.35 py37h14c3975_0
unixodbc 2.3.7 h14c3975_0
urllib3 1.24.1 py37_0
vine 1.3.0 py_0
wcwidth 0.1.7 py37_0
werkzeug 0.14.1 py37_0
wheel 0.32.3 py37_0
wrapt 1.10.11 py37h14c3975_2
xlrd 1.2.0 py37_0
xlwt 1.3.0 py37_0
xz 5.2.4 h14c3975_4
yaml 0.1.7 h96e3832_1
zeep 3.2.0 py_1000
zlib 1.2.11 h7b6447c_3
This is an issue we fixed in the last cassandra-driver release (3.19.0). However, you will need to install the "futurist" package to get eventlet working with Python 3.7. For more details, see https://github.com/eventlet/eventlet/issues/508
Related
I am trying to run my simple AI program but I keep getting this DLL error:
ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable.
You may install these DLLs by downloading "Microsoft C++ Redistributable for Visual Studio 2015, 2017 and 2019" for your platform from this URL:
https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads
I went ahead and downloaded that support file and restarted my computer but that didn't work. I also found the specified dll file in my system 32 and made sure it was in my PATH environment for both system and user. Still doesn't work. I am using python3.8 with gpu enabled. Am
I missing something? Is this a version issue because it has never happened on my previous projects.
Here are my libraries:
_tflow_select 2.3.0
absl-py 0.12.0
aggdraw 1.3.12
aiofiles 0.7.0
aiohttp 3.7.4
alembic 1.6.4
argon2-cffi 20.1.0
astor 0.8.1
asttokens 2.0.5
astunparse 1.6.3
async-timeout 3.0.1
async_generator 1.10
attrs 20.3.0
autokeras 1.0.16
backcall 0.2.0
beautifulsoup4 4.9.3
blas 1.0
bleach 3.3.0
blinker 1.4
brotlipy 0.7.0
ca-certificates 2021.7.5
cachetools 4.2.2
certifi 2021.5.30
cffi 1.14.5
chardet 4.0.0
click 7.1.2
cliff 3.8.0
cmaes 0.8.2
cmd2 2.1.2
colorama 0.4.4
colorlog 5.0.1
coverage 5.5
cryptography 3.4.7
cycler 0.10.0
cython 0.29.23
decorator 5.0.9
defusedxml 0.7.1
docopt 0.6.2
entrypoints 0.3
executing 0.6.0
fastapi 0.65.1
flaml 0.6.9
flatbuffers 1.12
freetype 2.10.4
gast 0.4.0
gin-config 0.4.0
google-auth 1.30.0
google-auth-oauthlib 0.4.4
google-pasta 0.2.0
greenlet 1.1.0
grpcio 1.34.1
h11 0.12.0
h5py 3.1.0
hdf5 1.10.5
icc_rt 2019.0.0
icecream 2.1.0
icu 58.2
idna 2.10
importlib-metadata 3.10.0
importlib_metadata 3.10.0
intel-openmp 2021.2.0
ipykernel 5.3.4
ipython 7.25.0
ipython_genutils 0.2.0
ipywidgets 7.6.3
jedi 0.18.0
jinja2 3.0.1
joblib 1.0.1
jpeg 9b
jsonschema 3.2.0
jupyter_client 6.1.12
jupyter_core 4.7.1
jupyterlab_pygments 0.1.2
jupyterlab_widgets 1.0.0
keras 2.7.0
keras-applications 1.0.8
keras-nightly 2.5.0.dev2021032900
keras-preprocessing 1.1.2
keras-tuner 1.0.4
kiwisolver 1.3.1
kt-legacy 1.0.4
libclang 12.0.0
libpng 1.6.37
libprotobuf 3.14.0
libsodium 1.0.18
libtiff 4.1.0
lightgbm 3.3.1
llvmlite 0.37.0
lxml 4.6.3
lz4-c 1.9.3
m2w64-gcc-libgfortran 5.3.0
m2w64-gcc-libs 5.3.0
m2w64-gcc-libs-core 5.3.0
m2w64-gmp 6.1.0
m2w64-libwinpthread-git 5.0.0.4634.697f757
mako 1.1.4
markdown 3.3.4
markupsafe 2.0.1
matplotlib 3.3.4
matplotlib-base 3.3.4
matplotlib-inline 0.1.2
mistune 0.8.4
mkl 2021.2.0
mkl-service 2.3.0
mkl_fft 1.3.0
mkl_random 1.2.1
msys2-conda-epoch 20160418
multidict 5.1.0
nbclient 0.5.3
nbconvert 6.1.0
nbformat 5.1.3
nest-asyncio 1.5.1
notebook 6.4.0
numba 0.54.0
numexpr 2.7.3
numpy 1.19.5
oauthlib 3.1.0
olefile 0.46
opencv-contrib-python 4.5.3.56
opencv-python 4.5.3.56
openssl 1.1.1k
opt-einsum 3.3.0
opt_einsum 3.1.0
optuna 2.8.0
orca 1.6
packaging 20.9
pandas 1.2.4
pandocfilters 1.4.3
parso 0.8.2
pbr 5.6.0
pickleshare 0.7.5
pillow 8.2.0
pip 21.3.1
pipreqs 0.4.10
plotly 4.14.3
plotly-orca 1.3.1
prettytable 2.1.0
prometheus_client 0.11.0
prompt-toolkit 3.0.17
protobuf 3.16.0
psutil 5.8.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
pydantic 1.8.1
pydot 1.4.2
pygments 2.9.0
pyjwt 2.1.0
pyopenssl 20.0.1
pyparsing 2.4.7
pyperclip 1.8.2
pyqt 5.9.2
pyreadline 2.1
pyreadline3 3.3
pyrsistent 0.17.3
pysocks 1.7.1
python 3.8.0
python-dateutil 2.8.1
python-dotenv 0.17.1
python-editor 1.0.4
python-multipart 0.0.5
python_abi 3.8
pytz 2021.1
pywin32 227
pywinpty 0.5.7
pyyaml 5.4.1
pyzmq 20.0.0
qt 5.9.7
requests 2.25.1
requests-oauthlib 1.3.0
retrying 1.3.3
rsa 4.7.2
scikit-learn 0.24.2
scipy 1.6.2
seaborn 0.11.1
send2trash 1.5.0
setuptools 52.0.0
sip 4.19.13
six 1.15.0
soupsieve 2.2.1
sqlalchemy 1.4.22
sqlite 3.35.4
starlette 0.14.2
stevedore 3.3.0
tables 3.6.1
tensorboard 2.7.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.0
tensorflow 2.5.0
tensorflow-addons 0.13.0
tensorflow-base 2.3.0
tensorflow-estimator 2.5.0
tensorflow-gpu 2.4.1
tensorflow-io-gcs-filesystem 0.21.0
termcolor 1.1.0
terminado 0.9.4
testpath 0.5.0
threadpoolctl 2.1.0
tk 8.6.10
toolz 0.11.1
tornado 6.1
tqdm 4.61.2
traitlets 5.0.5
typeguard 2.12.1
typing-extensions 3.7.4.3
typing_extensions 3.7.4.3
urllib3 1.26.4
uvicorn 0.13.4
vc 14.2
visualkeras 0.0.2
vs2015_runtime 14.27.29016
watchgod 0.6
wcwidth 0.2.5
webencodings 0.5.1
websockets 8.1
werkzeug 1.0.1
wheel 0.36.2
widgetsnbextension 3.5.1
win_inet_pton 1.1.0
wincertstore 0.2
winpty 0.4.3
wrapt 1.12.1
xgboost 1.3.3
xz 5.2.5
yaml 0.2.5
yarg 0.1.9
yarl 1.6.3
zeromq 4.3.3
zipp 3.4.1
zlib 1.2.11
zstd 1.4.9
First, check to see if msvcp140.dll (not msvcp140_1.dll) is installed.
Download it here: https://www.microsoft.com/en-us/download/details.aspx?id=53587
Restart your computer and see if it works.
If that doesn't work try copying msvcp140_1.dll into: C:\Users\PCName\AppData\Local\Programs\Python\Python38
If nothing still works, it could be a version issue.
As far as I know, Python 3.8 support requires TensorFlow 2.2 or later.
Run this:
pip install tensorflow ==2.2.0
Look here for system requirements: https://www.tensorflow.org/install/pip#system-requirements
Tensorflow will work only on Windows 7 or later (64-bit) (According to the above link)
Package location: https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.7.0-cp38-cp38-win_amd64.whl
If you are using 32-bit python,
replace your 32-bit python with a 64-bit version. Tensorflow does not support 32-bit architecture.
I created a virtual environment using command virtualenv env on my terminal. On using pip freeze > requirements.txt after activating the virtual environment, I was a bunch of packages preinstalled.
Here is requirements.txt:
appdirs==1.4.3
CacheControl==0.12.6
certifi==2019.11.28
chardet==3.0.4
colorama==0.4.3
contextlib2==0.6.0
distlib==0.3.0
distro==1.4.0
html5lib==1.0.1
idna==2.8
ipaddr==2.2.0
lockfile==0.12.2
msgpack==0.6.2
packaging==20.3
pep517==0.8.2
progress==1.5
pyparsing==2.4.6
pytoml==0.1.21
requests==2.22.0
retrying==1.3.3
six==1.14.0
urllib3==1.25.8
webencodings==0.5.1
I haven't installed them and then, why are they there? I don't want any obsolete packages in the project which takes space and time.
Output on virtualenv env command:
created virtual environment CPython3.7.5.final.0-64 in 297ms
creator CPython3Posix(dest=/home/techmirtz/projects/Django/apps/polls/env, clear=False, global=False)
seeder FromAppData(download=False, pkg_resources=latest, requests=latest, setuptools=latest, wheel=latest, CacheControl=latest, chardet=latest, webencodings=latest, certifi=latest, distlib=latest, idna=latest, colorama=latest, distro=latest, progress=latest, msgpack=latest, pep517=latest, appdirs=latest, urllib3=latest, pip=latest, html5lib=latest, pyparsing=latest, contextlib2=latest, six=latest, lockfile=latest, packaging=latest, pytoml=latest, retrying=latest, ipaddr=latest, via=copy, app_data_dir=/home/techmirtz/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Also, I activated virtual environment by source env/bin/activate.
Then, I tried conda list:
# packages in environment at /home/techmirtz/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
_libgcc_mutex 0.1 main
alabaster 0.7.12 py37_0
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
anaconda-project 0.8.3 py_0
anyqt 0.0.10 py37_0
asn1crypto 0.24.0 py37_0
astroid 2.2.5 py37_0
astropy 3.2.1 py37h7b6447c_0
atomicwrites 1.3.0 py37_1
attrs 19.1.0 py37_1
babel 2.7.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.5 py_2
backports.os 0.1.1 py37_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.7.1 py37_1
bitarray 0.9.3 py37h7b6447c_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.0 py37_0
blosc 1.16.3 hd408876_0
bokeh 1.2.0 py37_0
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h035aef0_1
bzip2 1.0.8 h7b6447c_0
ca-certificates 2020.1.1 0
cairo 1.14.12 h8948797_3
certifi 2020.4.5.1 py37_0
cffi 1.12.3 py37h2e261b9_0
chardet 3.0.4 py37_1
click 7.0 py37_0
cloudpickle 1.2.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
conda 4.8.3 py37_0
conda-build 3.18.8 py37_0
conda-env 2.6.0 1
conda-package-handling 1.3.11 py37_0
conda-verify 3.4.2 py_1
contextlib2 0.5.5 py37_0
cryptography 2.7 py37h1ba5d50_0
curl 7.65.2 hbc83047_0
cycler 0.10.0 py37_0
cython 0.29.12 py37he6710b0_0
cytoolz 0.10.0 py37h7b6447c_0
dask 2.1.0 py_0
dask-core 2.1.0 py_0
dbus 1.13.6 h746ee38_0
decorator 4.4.0 py37_1
defusedxml 0.6.0 py_0
distributed 2.1.0 py_0
docutils 0.14 py37_0
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
expat 2.2.6 he6710b0_0
fastcache 1.1.0 py37h7b6447c_0
filelock 3.0.12 py_0
flask 1.1.1 py_0
fontconfig 2.13.0 h9420a91_0
freetype 2.9.1 h8a8886c_1
fribidi 1.0.5 h7b6447c_0
future 0.17.1 py37_0
get_terminal_size 1.0.0 haa9412d_0
gevent 1.4.0 py37h7b6447c_0
glib 2.56.2 hd408876_0
glob2 0.7 py_0
gmp 6.1.2 h6c8ec71_1
gmpy2 2.0.8 py37h10f8cd9_2
graphite2 1.3.13 h23475e2_0
graphviz 2.40.1 h21bd128_2 anaconda
greenlet 0.4.15 py37h7b6447c_0
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
h5py 2.9.0 py37h7918eee_0
harfbuzz 1.8.8 hffaf4a1_0
hdf5 1.10.4 hb1b8bf9_0
heapdict 1.0.0 py37_2
html5lib 1.0.1 py37_0
icu 58.2 h9c2bf20_1
idna 2.8 py37_0
imageio 2.5.0 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.17 py37_1
intel-openmp 2019.4 243
ipykernel 5.1.1 py37h39e3cac_0
ipython 7.6.1 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.0 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jbig 2.1 hdba287a_0
jdcal 1.4.1 py_0
jedi 0.13.3 py37_0
jeepney 0.4 py37_0
jinja2 2.10.1 py37_0
joblib 0.13.2 py37_0
jpeg 9b h024ee3a_2
json5 0.8.4 py_0
jsonschema 3.0.1 py37_0
jupyter 1.0.0 py37_7
jupyter_client 5.3.1 py_0
jupyter_console 6.0.0 py37_0
jupyter_core 4.5.0 py_0
jupyterlab 1.0.2 py37hf63ae98_0
jupyterlab_server 1.0.0 py_0
keyring 18.0.0 py37_0
kiwisolver 1.1.0 py37he6710b0_0
krb5 1.16.1 h173b8e3_7
lazy-object-proxy 1.4.1 py37h7b6447c_0
libarchive 3.3.3 h5d8350f_5
libcurl 7.65.2 h20c2e04_0
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libgcc-ng 9.1.0 hdf63c60_0
libgfortran-ng 7.3.0 hdf63c60_0
liblief 0.9.0 h7725739_2
libpng 1.6.37 hbc83047_0
libsodium 1.0.16 h1bed415_0
libssh2 1.8.2 h1ba5d50_0
libstdcxx-ng 9.1.0 hdf63c60_0
libtiff 4.0.10 h2733197_2
libtool 2.4.6 h7b6447c_5
libuuid 1.0.3 h1bed415_2
libxcb 1.13 h1bed415_1
libxml2 2.9.9 hea5a465_1
libxslt 1.1.33 h7d1a2b0_0
llvmlite 0.29.0 py37hd408876_0
locket 0.2.0 py37_1
lxml 4.3.4 py37hefd8a0e_0
lz4-c 1.8.1.2 h14c3975_0
lzo 2.10 h49e0be7_2
markupsafe 1.1.1 py37h7b6447c_0
matplotlib 3.1.0 py37h5429711_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h7b6447c_0
mkl 2019.4 243
mkl-service 2.0.2 py37h7b6447c_0
mkl_fft 1.0.12 py37ha843d7b_0
mkl_random 1.0.2 py37hd81dba3_0
mock 3.0.5 py37_0
more-itertools 7.0.0 py37_0
mpc 1.1.0 h10f8cd9_1
mpfr 4.0.1 hdf1c602_3
mpmath 1.1.0 py37_0
msgpack-python 0.6.1 py37hfd86e86_1
multipledispatch 0.6.0 py37_0
navigator-updater 0.2.1 py37_0
nbconvert 5.5.0 py_0
nbformat 4.4.0 py37_0
ncurses 6.1 he6710b0_1
networkx 2.3 py_0
nltk 3.4.4 py37_0
nose 1.3.7 py37_2
notebook 6.0.0 py37_0
numba 0.44.1 py37h962f231_0
numexpr 2.6.9 py37h9e4a6bb_0
numpy 1.16.4 py37h7e9f1db_0
numpy-base 1.16.4 py37hde5b4d6_0
numpydoc 0.9.1 py_0
olefile 0.46 py37_0
openpyxl 2.6.2 py_0
openssl 1.1.1g h7b6447c_0
packaging 19.0 py37_0
pandas 0.24.2 py37he6710b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
pango 1.42.4 h049681c_0
parso 0.5.0 py_0
partd 1.0.0 py_0
patchelf 0.9 he6710b0_3
path.py 12.0.1 py_0
pathlib2 2.3.4 py37_0
patsy 0.5.1 py37_0
pcre 8.43 he6710b0_0
pep8 1.7.1 py37_0
pexpect 4.7.0 py37_0
pickleshare 0.7.5 py37_0
pillow 6.1.0 py37h34e0f95_0
pip 19.1.1 py37_0
pixman 0.38.0 h7b6447c_0
pkginfo 1.5.0.1 py37_0
pluggy 0.12.0 py_0
ply 3.11 py37_0
prometheus_client 0.7.1 py_0
prompt_toolkit 2.0.9 py37_0
psutil 5.6.3 py37h7b6447c_0
ptyprocess 0.6.0 py37_0
py 1.8.0 py37_0
py-lief 0.9.0 py37h7725739_2
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37h14c3975_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37h14c3975_9
pycurl 7.43.0.3 py37h1ba5d50_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0
pylint 2.3.1 py37_0
pyodbc 4.0.26 py37he6710b0_0
pyopenssl 19.0.0 py37_0
pyparsing 2.4.0 py_0
pyqt 5.9.2 py37h05f1152_2
pyqtgraph 0.10.0 py37h28b3542_3
pyrsistent 0.14.11 py37h7b6447c_0
pysocks 1.7.0 py37_0
pytables 3.5.2 py37h71ec239_1
pytest 5.0.1 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.3.0 py37_0
pytest-openfiles 0.3.2 py37_0
pytest-remotedata 0.3.1 py37_0
python 3.7.3 h0371630_0
python-dateutil 2.8.0 py37_0
python-graphviz 0.10.1 py_0
python-libarchive-c 2.8 py37_11
pytz 2019.1 py_0
pywavelets 1.0.3 py37hdd07704_1
pyyaml 5.1.1 py37h7b6447c_0
pyzmq 18.0.0 py37he6710b0_0
qt 5.9.7 h5867ecd_1
qtawesome 0.5.7 py37_1
qtconsole 4.5.1 py_0
qtpy 1.8.0 py_0
readline 7.0 h7b6447c_5
requests 2.22.0 py37_0
rope 0.14.0 py_0
ruamel_yaml 0.15.46 py37h14c3975_0
scikit-image 0.15.0 py37he6710b0_0
scikit-learn 0.21.2 py37hd81dba3_0
scipy 1.3.0 py37h7c811a0_0
seaborn 0.9.0 py37_0
secretstorage 3.1.1 py37_0
send2trash 1.5.0 py37_0
setuptools 41.0.1 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37hf484d3e_0
six 1.12.0 py37_0
snappy 1.1.7 hbae5bb6_3
snowballstemmer 1.9.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 1.8 py37_0
sphinx 2.1.2 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.1 py_0
sphinxcontrib-devhelp 1.0.1 py_0
sphinxcontrib-htmlhelp 1.0.2 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.2 py_0
sphinxcontrib-serializinghtml 1.1.3 py_0
sphinxcontrib-websupport 1.1.2 py_0
spyder 3.3.6 py37_0
spyder-kernels 0.5.1 py37_0
sqlalchemy 1.3.5 py37h7b6447c_0
sqlite 3.29.0 h7b6447c_0
statsmodels 0.10.0 py37hdd07704_0
sympy 1.4 py37_0
tbb 2019.4 hfd86e86_0
tblib 1.4.0 py_0
terminado 0.8.2 py37_0
testpath 0.4.2 py37_0
tk 8.6.8 hbc83047_0
toolz 0.10.0 py_0
tornado 6.0.3 py37h7b6447c_0
tqdm 4.32.1 py_0
traitlets 4.3.2 py37_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h14c3975_0
urllib3 1.24.2 py37_0
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
werkzeug 0.15.4 py_0
wheel 0.33.4 py37_0
widgetsnbextension 3.5.0 py37_0
wrapt 1.11.2 py37h7b6447c_0
wurlitzer 1.0.2 py37_0
xlrd 1.2.0 py37_0
xlsxwriter 1.1.8 py_0
xlwt 1.3.0 py37_0
xz 5.2.4 h14c3975_4
yaml 0.1.7 had09818_2
zeromq 4.3.1 he6710b0_3
zict 1.0.0 py_0
zipp 0.5.1 py_0
zlib 1.2.11 h7b6447c_3
zstd 1.3.7 h0b5b093_0
I was struggling with the same problem. New virtual environments had many unwanted packages installed, even though some of these are things that I do not even have installed with my system python or any virtual environment. At first I assumed that this must be some local configuration bug, but the list of packages installed is complete identical to the ones that you listed, so it seems more likely that this is a bug in the virtualenv package itself.
When I create a new virtualenv it contains the following libraries no matter what:
appdirs==1.4.3
CacheControl==0.12.6
certifi==2019.11.28
chardet==3.0.4
colorama==0.4.3
contextlib2==0.6.0
distlib==0.3.0
distro==1.4.0
html5lib==1.0.1
idna==2.8
ipaddr==2.2.0
lockfile==0.12.2
msgpack==0.6.2
packaging==20.3
pep517==0.8.2
progress==1.5
pyparsing==2.4.6
pytoml==0.1.21
requests==2.22.0
retrying==1.3.3
six==1.14.0
urllib3==1.25.8
webencodings==0.5.1
I wanted to know why these packages were being installed so that I could disable them, and while looking I found that these packages are all in the folder
~/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.8/wheels
Unfortunately, just removing this folder doesn't work. It's regenerated with the same content, so something else upstream is responsible for the bug. This seems likely to be a packaging error by Ubuntu or something like that.
I am on Ubuntu 20.04 with this version of virtualenv:
python3-virtualenv/focal,focal,now 20.0.17-1 all - I never had the issue while on previous versions of Ubuntu. if you have a similar platform that would help confirm the hypothesis.
If you need a workaround, I found that the following method for creating virtual environments still works without including all the unwanted packages:
python3 -m venv path/to/venv
(You'll need to run sudo apt-get install python3-venv first for this to work)
In my case, I had the same problem, created a virtual environment, and exactly appeared the same pre-installed packages within it.
Data of my system:
Python 3.8.5
Linux Mint 20.1
Note: I do not have pip installed globally on my system, only within virtual environments.
The solution that worked for me:
Unistall python3-virtualenv, including your dependencies
$ sudo apt-get remove --auto-remove python3-virtualenv
Check that there is no virtualenv installed
$ virtualenv
Should see something similar to this
Command 'virtualenv' not found, but it can be installed with:
sudo apt install python3-virtualenv
First, update. Then I install virtualenv but not with python3-virtualenv. Instead, I use
$ sudo apt-get update
$ sudo apt-get install virtualenv
The virtualenv will be installed, and the necessary dependencies of Python3 and its appropriate versions.
Now, when I create a virtual environment this is totally empty.
^ u^)b
My current python version is :
When I search for available python using the code:
conda search python
Below is the output:
I want to update my python to the latest version.
I use the following commands:
conda config --show
It gives the following output, Please review it and let me know what is the issue.
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_conda_downgrades: False
allow_cycles: True
allow_non_channel_urls: False
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_activate_base: True
auto_stack: 0
auto_update_conda: True
bld_path:
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: flexible
channels:
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
conda_build: {}
create_default_packages: []
croot: /opt/anaconda3/conda-bld
custom_channels:
pkgs/main: https://repo.anaconda.com
pkgs/r: https://repo.anaconda.com
pkgs/pro: https://repo.anaconda.com
custom_multichannels:
defaults:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
local:
debug: False
default_channels:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
default_python: 3.7
default_threads: None
deps_modifier: not_set
dev: False
disallowed_packages: []
download_only: False
dry_run: False
enable_private_envs: False
env_prompt: ({default_env})
envs_dirs:
- /opt/anaconda3/envs
- /Users/aarav/.conda/envs
error_upload_url: https://conda.io/conda-post/unexpected-error
execute_threads: 1
extra_safety_checks: False
force: False
force_32bit: False
force_reinstall: False
force_remove: False
ignore_pinned: False
json: False
local_repodata_ttl: 1
migrated_channel_aliases: []
migrated_custom_channels: {}
non_admin_enabled: True
notify_outdated_conda: True
offline: False
override_channels_enabled: True
path_conflict: clobber
pinned_packages: []
pip_interop_enabled: False
pkgs_dirs:
- /opt/anaconda3/pkgs
- /Users/aarav/.conda/pkgs
proxy_servers: {}
quiet: False
remote_backoff_factor: 1
remote_connect_timeout_secs: 9.15
remote_max_retries: 3
remote_read_timeout_secs: 60.0
repodata_fns:
- current_repodata.json
- repodata.json
repodata_threads: None
report_errors: None
restore_free_channel: False
rollback_enabled: True
root_prefix: /opt/anaconda3
safety_checks: warn
sat_solver: pycosat
separate_format_cache: False
shortcuts: True
show_channel_urls: None
solver_ignore_timestamps: False
ssl_verify: True
subdir: osx-64
subdirs:
- osx-64
- noarch
target_prefix_override:
track_features: []
unsatisfiable_hints: True
unsatisfiable_hints_check_depth: 2
update_modifier: update_specs
use_index_cache: False
use_local: False
use_only_tar_bz2: False
verbosity: 0
verify_threads: 1
whitelist_channels: []
I also tried to run this :
conda install python=3.8.3 -d [--json]
I got this error:
I tried using install the latest version using the following command:
conda install python=3.8.3
It was This was the output:
The conda modules that have been installed are listed below :
conda list
# packages in environment at /opt/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2020.02 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
absl-py 0.9.0 py37_0
alabaster 0.7.12 py37_0
altgraph 0.17 py_0
amqp 2.5.2 pypi_0 pypi
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.12 py37_0
anaconda-project 0.8.4 py_0
applaunchservices 0.2.1 py_0
appnope 0.1.0 py37_0
appscript 1.1.0 py37h1de35cc_0
argh 0.26.2 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.0 py37_0
astroid 2.4.1 py37_0
astropy 4.0.1.post1 py37h01d97ff_1
atomicwrites 1.4.0 py_0
attrs 19.3.0 py_0
autopep8 1.4.4 py_0
babel 2.8.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.6.1 py_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.9.1 py37_0
billiard 3.6.3.0 pypi_0 pypi
bitarray 1.2.2 py37haf1e3a3_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.4 py_0
blosc 1.16.3 hd9629dc_0
bokeh 2.0.2 py37_0
boto 2.49.0 py37_0
bottleneck 1.3.2 py37hf1fa96c_1
bzip2 1.0.8 h1de35cc_0
c-ares 1.15.0 h1de35cc_1001
ca-certificates 2020.4.5.2 hecda079_0 conda-forge
cachetools 4.1.0 pypi_0 pypi
celery 4.4.2 pypi_0 pypi
certifi 2020.4.5.2 py37hc8dfbb8_0 conda-forge
cffi 1.14.0 py37hb5b8e2f_0
chardet 3.0.4 py37_1003
click 7.1.2 py_0
cloudpickle 1.4.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.3 py_0
conda 4.8.3 py37hc8dfbb8_1 conda-forge
conda-build 3.18.11 py37_0
conda-env 2.6.0 1
conda-package-handling 1.6.1 py37h1de35cc_0
conda-verify 3.4.2 py_1
contextlib2 0.6.0.post1 py_0
cryptography 2.9.2 py37ha12b0ac_0
cssselect 1.1.0 pypi_0 pypi
curl 7.69.1 ha441bb4_0
cycler 0.10.0 py37_0
cython 0.29.17 py37h0a44026_0
cytoolz 0.10.1 py37h1de35cc_0
dask 2.17.2 py_0
dask-core 2.17.2 py_0
dbus 1.13.14 h517e14e_0
decorator 4.4.2 py_0
defusedxml 0.6.0 py_0
diazo 1.4.0 pypi_0 pypi
diff-match-patch 20181111 py_0
distributed 2.17.0 py37_0
django 1.7.11 pypi_0 pypi
django-haystack 2.8.1 pypi_0 pypi
django-hitcounter 0.1.1 pypi_0 pypi
django-revproxy 0.10.0 pypi_0 pypi
django-taggit 1.2.0 pypi_0 pypi
docutils 0.16 py37_1
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
etiquetando 0.1 pypi_0 pypi
expat 2.2.6 h0a44026_0
fastcache 1.1.0 py37h1de35cc_0
filelock 3.0.12 py_0
flake8 3.8.2 py_0
flask 1.1.2 py_0
freetype 2.9.1 hb4e5f40_0
fsspec 0.7.4 py_0
future 0.18.2 py37_1
gast 0.3.3 py_0
get_terminal_size 1.0.0 h7520d66_0
gettext 0.19.8.1 h15daf44_3
gevent 1.4.0 py37h1de35cc_0
glib 2.63.1 hd977a24_0
glob2 0.7 py_0
gmp 6.1.2 hb37e062_1
gmpy2 2.0.8 py37h6ef4df4_2
google-auth 1.14.3 pypi_0 pypi
google-auth-oauthlib 0.4.1 pypi_0 pypi
greenlet 0.4.15 py37h1de35cc_0
grpcio 1.29.0 pypi_0 pypi
h5py 2.10.0 py37h3134771_0
hdf5 1.10.4 hfa1e0ec_0
heapdict 1.0.1 py_0
html2text 2020.1.16 pypi_0 pypi
html5lib 1.0.1 py37_0
hypothesis 5.11.0 py_0
icu 58.2 h0a44026_3
idna 2.9 py_1
imageio 2.8.0 py_0
imagesize 1.2.0 py_0
imbalanced-learn 0.6.2 py_0 conda-forge
importlib-metadata 1.6.0 py37_0
importlib_metadata 1.6.0 0
intel-openmp 2019.4 233
intervaltree 3.0.2 py_0
ipykernel 5.1.4 py37h39e3cac_0
ipython 7.13.0 py37h5ca1d4c_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jbig 2.1 h4d881f8_0
jdcal 1.4.1 py_0
jedi 0.15.2 py37_0
jinja2 2.11.2 py_0
joblib 0.15.1 py_0
jpeg 9b he5867d9_2
json5 0.9.5 py_0
jsonschema 3.2.0 py37_0
jupyter 1.0.0 py37_7
jupyter_client 6.1.3 py_0
jupyter_console 6.1.0 py_0
jupyter_core 4.6.3 py37_0
jupyterlab 1.2.6 pyhf63ae98_0
jupyterlab_server 1.1.4 py_0
keras-applications 1.0.8 py_0
keras-preprocessing 1.1.0 py_1
keyring 21.1.1 py37_2
kiwisolver 1.2.0 py37h04f5b5a_0
kombu 4.6.8 pypi_0 pypi
krb5 1.17.1 hddcf347_0
lazy-object-proxy 1.4.3 py37h1de35cc_0
libarchive 3.3.3 h786848e_5
libcurl 7.69.1 h051b688_0
libcxx 10.0.0 1
libcxxabi 4.0.1 hcfea43d_1
libedit 3.1.20181209 hb402a30_0
libffi 3.2.1 h0a44026_6
libgfortran 3.0.1 h93005f0_2
libiconv 1.16 h1de35cc_0
liblief 0.10.1 h0a44026_0
libpng 1.6.37 ha441bb4_0
libprotobuf 3.11.4 hd9629dc_0
libsodium 1.0.16 h3efe00b_0
libspatialindex 1.9.3 h0a44026_0
libssh2 1.9.0 ha12b0ac_1
libtiff 4.1.0 hcb84e12_0
libxml2 2.9.9 hf6e021a_1
libxslt 1.1.33 h33a18ac_0
llvm-openmp 10.0.0 h28b9765_0
llvmlite 0.32.1 py37h8c7ce04_0
locket 0.2.0 py37_1
lxml 4.5.0 py37hef8c89e_0
lz4-c 1.8.1.2 h1de35cc_0
lzo 2.10 h1de35cc_2
macholib 1.11 py_0
markdown 3.1.1 py37_0
markupsafe 1.1.1 py37h1de35cc_0
matplotlib 3.1.3 py37_0
matplotlib-base 3.1.3 py37h9aa3819_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h1de35cc_0
mkl 2019.4 233
mkl-service 2.3.0 py37hfbe908c_0
mkl_fft 1.0.15 py37h5e564d8_0
mkl_random 1.1.1 py37h959d312_0
mock 4.0.2 py_0
mongodb 4.0.3 hccea1a4_0
more-itertools 8.3.0 py_0
mpc 1.1.0 h6ef4df4_1
mpfr 4.0.1 h3018a27_3
mpmath 1.1.0 py37_0
msgpack-python 1.0.0 py37h04f5b5a_1
multipledispatch 0.6.0 py37_0
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0
nbformat 5.0.6 py_0
ncurses 6.2 h0a44026_1
networkx 2.4 py_0
nltk 3.4.5 py37_0
nose 1.3.7 py37_2
notebook 6.0.3 py37_0
numba 0.49.1 py37h86efe34_0
numexpr 2.7.1 py37hce01a72_0
numpy 1.18.1 py37h7241aed_0
numpy-base 1.18.1 py37h3304bdc_1
numpydoc 0.9.2 py_0
oauthlib 3.1.0 pypi_0 pypi
olefile 0.46 py37_0
openpyxl 3.0.3 py_0
openssl 1.1.1g h0b31af3_0 conda-forge
packaging 20.3 py_0
pandas 1.0.3 py37h6c726b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.2 py_0
partd 1.1.0 py_0
path 13.1.0 py37_0
path.py 12.4.0 0
pathlib2 2.3.5 py37_0
pathtools 0.1.2 py_1
patsy 0.5.1 py37_0
pcre 8.43 h0a44026_0
pep8 1.7.1 py37_0
pexpect 4.8.0 py37_0
pickleshare 0.7.5 py37_0
pillow 7.1.2 py37h4655f20_0
pip 20.0.2 py37_3
pkginfo 1.5.0.1 py37_0
pluggy 0.13.1 py37_0
ply 3.11 py37_0
portaudio 19.6.0 h647c56a_4
prometheus_client 0.7.1 py_0
prompt-toolkit 3.0.5 py_0
prompt_toolkit 3.0.5 0
protobuf 3.11.4 py37h0a44026_0
psutil 5.7.0 py37h1de35cc_0
ptyprocess 0.6.0 py37_0
py 1.8.1 py_0
py-lief 0.10.1 py37haf313ee_0
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyaudio 0.2.11 py37h1de35cc_2
pycodestyle 2.6.0 py_0
pycosat 0.6.3 py37h1de35cc_0
pycparser 2.20 py_0
pycrypto 2.6.1 py37h1de35cc_9
pycryptodome 3.8.2 py37ha8bbb54_0
pycurl 7.43.0.5 py37ha12b0ac_0
pydocstyle 4.0.1 py_0
pyflakes 2.2.0 py_0
pygments 2.6.1 py_0
pyinstaller 3.6 py37ha441bb4_5
pylint 2.5.2 py37_0
pymysql 0.9.3 py37_0
pyodbc 4.0.30 py37h0a44026_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h655552a_2
pyrsistent 0.16.0 py37h1de35cc_0
pysimplegui 4.18.2 pyh9f0ad1d_0 conda-forge
pysocks 1.7.1 py37_0
pytables 3.6.1 py37h5bccee9_0
pytest 5.4.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.8.0 py_0
pytest-astropy-header 0.1.2 py_0
pytest-doctestplus 0.7.0 py_0
pytest-openfiles 0.5.0 py_0
pytest-remotedata 0.3.2 py37_0
python 3.7.7 hc70fcce_0_cpython
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.3.4 py_0
python-language-server 0.31.9 py37_0
python-libarchive-c 2.9 py_0
python.app 2 py37_10
python_abi 3.7 1_cp37m conda-forge
pytz 2020.1 py_0
pywavelets 1.1.1 py37h1de35cc_0
pyyaml 5.3.1 py37h1de35cc_0
pyzmq 18.1.1 py37h0a44026_0
qdarkstyle 2.8.1 py_0
qt 5.9.7 h468cd18_1
qtawesome 0.7.0 py_0
qtconsole 4.7.4 py_0
qtpy 1.9.0 py_0
readline 8.0 h1de35cc_0
redis 3.5.2 pypi_0 pypi
repoze-lru 0.7 pypi_0 pypi
requests 2.23.0 py37_0
requests-oauthlib 1.3.0 pypi_0 pypi
ripgrep 11.0.2 he32d670_0
rope 0.17.0 py_0
rsa 4.0 pypi_0 pypi
rtree 0.9.4 py37_1
ruamel_yaml 0.15.87 py37h1de35cc_0
scikit-image 0.16.2 py37h6c726b0_0
scikit-learn 0.22.1 py37h27c97d8_0
scipy 1.4.1 py37h9fa6033_0
seaborn 0.10.1 py_0
send2trash 1.5.0 py37_0
setuptools 47.1.1 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h0a44026_0
six 1.15.0 py_0
snappy 1.1.7 he62c110_3
snowballstemmer 2.0.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 2.0.1 py_0
sphinx 3.0.4 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.2 py_0
sphinxcontrib-devhelp 1.0.2 py_0
sphinxcontrib-htmlhelp 1.0.3 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.3 py_0
sphinxcontrib-serializinghtml 1.1.4 py_0
sphinxcontrib-websupport 1.2.1 py_0
spyder 4.1.2 py37_0
spyder-kernels 1.9.1 py37_0
sqlalchemy 1.3.17 py37haf1e3a3_0
sqlite 3.31.1 h5c1f38d_1
statsmodels 0.11.1 py37haf1e3a3_0
stemming 1.0.1 pypi_0 pypi
sympy 1.5.1 py37_0
tbb 2020.0 h04f5b5a_0
tblib 1.6.0 py_0
tensorboard 2.2.1 pypi_0 pypi
tensorboard-plugin-wit 1.6.0.post3 pypi_0 pypi
tensorflow 1.13.1 py37_1 conda-forge/label/cf202003
tensorflow-estimator 1.13.0 py37h24bf2e0_0 conda-forge/label/cf202003
termcolor 1.1.0 py37_1
terminado 0.8.3 py37_0
testpath 0.4.4 py_0
tk 8.6.8 ha441bb4_0
toml 0.10.0 py37h28b3542_0
toolz 0.10.0 py_0
tornado 6.0.4 py37h1de35cc_1
tqdm 4.46.0 py_0
traitlets 4.3.3 py37_0
typed-ast 1.4.1 py37h1de35cc_0
typing_extensions 3.7.4.1 py37_0
ujson 1.35 py37h1de35cc_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h1de35cc_0
urllib3 1.25.8 py37_0
vine 1.3.0 pypi_0 pypi
watchdog 0.10.2 py37h0b31af3_0 conda-forge
wcwidth 0.1.9 py_0
webencodings 0.5.1 py37_1
werkzeug 1.0.1 py_0
wheel 0.34.2 py37_0
whoosh 2.7.4 pypi_0 pypi
widgetsnbextension 3.5.1 py37_0
wrapt 1.11.2 py37h1de35cc_0
wurlitzer 2.0.0 py37_0
xlrd 1.2.0 py37_0
xlsxwriter 1.2.9 py_0
xlwings 0.19.4 py37_0
xlwt 1.3.0 py37_0
xmltodict 0.12.0 py_0
xz 5.2.5 h1de35cc_0
yaml 0.1.7 hc338f04_2
yapf 0.28.0 py_0
zeromq 4.3.1 h0a44026_3
zict 2.0.0 py_0
zipp 3.1.0 py_0
zlib 1.2.11 h1de35cc_3
zstd 1.3.7 h5bba6e5_0
But still, my python version is still 3.7.7
What is the problem and how to fix it?
This command usually will update to the latest version, but it seems this is not working for you.
conda update python
You can try this instead (Latest stable version is 3.8.3):
conda install python=3.8.3
However, you may want setup a new environment to be able to use multiple versions of python as upgrading may break your python scripts that run in 3.7.7. You can do this by using conda to create a new environment and then switch between the environments while you are testing and upgrading your scripts.
conda create --name test2 python=3.8.3
Also, the problem with the update command could be several. For example, if the channel list does not have a more recent version of python that is compatible with your environment, it won't update. To troubleshoot this we would need more information, such as
conda info
and
conda config --show
Think the problem is caused by mixing conda and pip installs in the same environment. This can be dangerous, as it will cause problems with some new installs or upgrades later on. conda won't know about pip details, and pip won't know about conda details. I suspect your Python upgrade has a dependency on one of the files installed through pip and gives up after a while.
Best practice is to use conda install if at all possible, and to create and use another environment. But if you still need a package that conda can't provide, then you can use pip. However, take note of the revision for that environment in case you have to roll back the pip install later.
To see the source of the install, look at the channel column. For example:
altgraph 0.17 py_0
amqp 2.5.2 pypi_0 pypi
imbalanced-learn 0.6.2 py_0 conda-forge
altgraph was installed using conda, amqp was installed using pip. The source for pip is the pypi website, that is why you see pypi in the last column (channel). Also, i can see you used the conda-forge channel for a few packages, such as imbalanced-learn. To change this environment in the future, you may need to add -c conda-forge
I created anaconda environment with Python=3.7 and have trouble with the error of _ssl and DLL. When I tried to get back to my base environment, I have trouble getting the background processes to complete as shown in the figure below, this goes on forever.
The error:
C:\Users\abhil\AppData\Local\Continuum\anaconda3\envs\HeisenbergPy37\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py" --mode=client --port=63950
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py", line 5, in <module>
from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\_pydev_comm\rpc.py", line 4, in <module>
from _pydev_comm.server import TSingleThreadedServer
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\_pydev_comm\server.py", line 4, in <module>
from _shaded_thriftpy.server import TServer
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\third_party\thriftpy\_shaded_thriftpy\server.py", line 9, in <module>
from _shaded_thriftpy.transport import (
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\third_party\thriftpy\_shaded_thriftpy\transport\__init__.py", line 57, in <module>
from .sslsocket import TSSLSocket, TSSLServerSocket # noqa
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
import ssl
File "C:\Users\abhil\AppData\Local\Continuum\anaconda3\envs\HeisenbergPy37\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.
Process finished with exit code 1
All packages installed with
conda create -n anaconda python=3.7
C:\WINDOWS\system32>conda list
# packages in environment at C:\Users\abhil\AppData\Local\Continuum\anaconda3\envs\HeisenbergPy37:
#
# Name Version Build Channel
alabaster 0.7.12 py37_0
anaconda 2018.12 py37_0
anaconda-client 1.7.2 py37_0
anaconda-project 0.8.2 py37_0
asn1crypto 0.24.0 py37_0
astroid 2.1.0 py37_0
astropy 3.1 py37he774522_0
atomicwrites 1.2.1 py37_0
attrs 18.2.0 py37h28b3542_0
babel 2.6.0 py37_0
backcall 0.1.0 py37_0
backports 1.0 py37_1
backports.os 0.1.1 py37_0
backports.shutil_get_terminal_size 1.0.0 py37_2
beautifulsoup4 4.6.3 py37_0
bitarray 0.8.3 py37hfa6e2cd_0
bkcharts 0.2 py37_0
blas 1.0 mkl
blaze 0.11.3 py37_0
bleach 3.0.2 py37_0
blosc 1.14.4 he51fdeb_0
bokeh 1.0.2 py37_0
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h452e1ab_1
bzip2 1.0.6 hfa6e2cd_5
ca-certificates 2018.03.07 0
certifi 2018.11.29 py37_0
cffi 1.11.5 py37h74b6da3_1
chardet 3.0.4 py37_1
click 7.0 py37_0
cloudpickle 0.6.1 py37_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
comtypes 1.1.7 py37_0
console_shortcut 0.1.1 3
contextlib2 0.5.5 py37_0
cryptography 2.4.2 py37h7a1dbc1_0
curl 7.63.0 h2a8f88b_1000
cycler 0.10.0 py37_0
cython 0.29.2 py37ha925a31_0
cytoolz 0.9.0.1 py37hfa6e2cd_1
dask 1.0.0 py37_0
dask-core 1.0.0 py37_0
datashape 0.5.4 py37_1
decorator 4.3.0 py37_0
defusedxml 0.5.0 py37_1
distributed 1.25.1 py37_0
docutils 0.14 py37_0
entrypoints 0.2.3 py37_2
et_xmlfile 1.0.1 py37_0
fastcache 1.0.2 py37hfa6e2cd_2
filelock 3.0.10 py37_0
flask 1.0.2 py37_1
flask-cors 3.0.7 py37_0
freetype 2.9.1 ha9979f8_1
get_terminal_size 1.0.0 h38e98db_0
gevent 1.3.7 py37he774522_1
glob2 0.6 py37_1
greenlet 0.4.15 py37hfa6e2cd_0
h5py 2.8.0 py37h3bdd7fb_2
hdf5 1.10.2 hac2f561_1
heapdict 1.0.0 py37_2
html5lib 1.0.1 py37_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imageio 2.4.1 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.6 py37_0
intel-openmp 2019.1 144
ipykernel 5.1.0 py37h39e3cac_0
ipython 7.2.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.4.2 py37_0
isort 4.3.4 py37_0
itsdangerous 1.1.0 py37_0
jdcal 1.4 py37_0
jedi 0.13.2 py37_0
jinja2 2.10 py37_0
jpeg 9b hb83a4c4_2
jsonschema 2.6.0 py37_0
jupyter 1.0.0 py37_7
jupyter_client 5.2.4 py37_0
jupyter_console 6.0.0 py37_0
jupyter_core 4.4.0 py37_0
jupyterlab 0.35.3 py37_0
jupyterlab_server 0.2.0 py37_0
keyring 17.0.0 py37_0
kiwisolver 1.0.1 py37h6538335_0
krb5 1.16.1 hc04afaa_7
lazy-object-proxy 1.3.1 py37hfa6e2cd_2
libarchive 3.3.3 h0643e63_5
libcurl 7.63.0 h2a8f88b_1000
libiconv 1.15 h1df5818_7
libpng 1.6.35 h2a8f88b_0
libsodium 1.0.16 h9d3ae62_0
libssh2 1.8.0 h7a1dbc1_4
libtiff 4.0.9 h36446d0_2
libxml2 2.9.8 hadb2253_1
libxslt 1.1.32 hf6f1972_0
llvmlite 0.26.0 py37ha925a31_0
locket 0.2.0 py37_1
lxml 4.2.5 py37hef2cd61_0
lz4-c 1.8.1.2 h2fa13f4_0
lzo 2.10 h6df0209_2
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markupsafe 1.1.0 py37he774522_0
matplotlib 3.0.2 py37hc8f65d3_0
mccabe 0.6.1 py37_1
menuinst 1.4.14 py37hfa6e2cd_0
mistune 0.8.4 py37he774522_0
mkl 2019.1 144
mkl-service 1.1.2 py37hb782905_5
mkl_fft 1.0.6 py37h6288b17_0
mkl_random 1.0.2 py37h343c172_0
more-itertools 4.3.0 py37_0
mpmath 1.1.0 py37_0
msgpack-python 0.5.6 py37he980bc4_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py37_0
nbconvert 5.4.0 py37_1
nbformat 4.4.0 py37_0
networkx 2.2 py37_1
nltk 3.4 py37_1
nose 1.3.7 py37_2
notebook 5.7.4 py37_0
numba 0.41.0 py37hf9181ef_0
numexpr 2.6.8 py37hdce8814_0
numpy 1.15.4 py37h19fb1c0_0
numpy-base 1.15.4 py37hc3f5095_0
numpydoc 0.8.0 py37_0
odo 0.5.1 py37_0
olefile 0.46 py37_0
openpyxl 2.5.12 py37_0
openssl 1.1.1a he774522_0
packaging 18.0 py37_0
pandas 0.23.4 py37h830ac7b_0
pandoc 1.19.2.1 hb2460c7_1
pandocfilters 1.4.2 py37_1
parso 0.3.1 py37_0
partd 0.3.9 py37_0
path.py 11.5.0 py37_0
pathlib2 2.3.3 py37_0
patsy 0.5.1 py37_0
pep8 1.7.1 py37_0
pickleshare 0.7.5 py37_0
pillow 5.3.0 py37hdc69c19_0
pip 18.1 py37_0
pkginfo 1.4.2 py37_1
pluggy 0.8.0 py37_0
ply 3.11 py37_0
prometheus_client 0.5.0 py37_0
prompt_toolkit 2.0.7 py37_0
psutil 5.4.8 py37he774522_0
py 1.7.0 py37_0
pycodestyle 2.4.0 py37_0
pycosat 0.6.3 py37hfa6e2cd_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37hfa6e2cd_9
pycurl 7.43.0.2 py37h7a1dbc1_0
pyflakes 2.0.0 py37_0
pygments 2.3.1 py37_0
pylint 2.2.2 py37_0
pyodbc 4.0.25 py37ha925a31_0
pyopenssl 18.0.0 py37_0
pyparsing 2.3.0 py37_0
pyqt 5.9.2 py37h6538335_2
pysocks 1.6.8 py37_0
pytables 3.4.4 py37he6f6034_0
pytest 4.0.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.2.0 py37_0
pytest-openfiles 0.3.1 py37_0
pytest-remotedata 0.3.1 py37_0
python 3.7.1 h8c8aaf0_6
python-dateutil 2.7.5 py37_0
python-libarchive-c 2.8 py37_6
pytz 2018.7 py37_0
pywavelets 1.0.1 py37h8c2d366_0
pywin32 223 py37hfa6e2cd_1
pywinpty 0.5.5 py37_1000
pyyaml 3.13 py37hfa6e2cd_0
pyzmq 17.1.2 py37hfa6e2cd_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.5.3 py37_0
qtconsole 4.4.3 py37_0
qtpy 1.5.2 py37_0
requests 2.21.0 py37_0
rope 0.11.0 py37_0
ruamel_yaml 0.15.46 py37hfa6e2cd_0
scikit-image 0.14.1 py37ha925a31_0
scikit-learn 0.20.1 py37h343c172_0
scipy 1.1.0 py37h29ff71c_2
seaborn 0.9.0 py37_0
send2trash 1.5.0 py37_0
setuptools 40.6.3 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h6538335_0
six 1.12.0 py37_0
snappy 1.1.7 h777316e_3
snowballstemmer 1.2.1 py37_0
sortedcollections 1.0.1 py37_0
sortedcontainers 2.1.0 py37_0
sphinx 1.8.2 py37_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-websupport 1.1.0 py37_1
spyder 3.3.2 py37_0
spyder-kernels 0.3.0 py37_0
sqlalchemy 1.2.15 py37he774522_0
sqlite 3.26.0 he774522_0
statsmodels 0.9.0 py37h452e1ab_0
sympy 1.3 py37_0
tblib 1.3.2 py37_0
terminado 0.8.1 py37_1
testpath 0.4.2 py37_0
tk 8.6.8 hfa6e2cd_0
toolz 0.9.0 py37_0
tornado 5.1.1 py37hfa6e2cd_0
tqdm 4.28.1 py37h28b3542_0
traitlets 4.3.2 py37_0
unicodecsv 0.14.1 py37_0
urllib3 1.24.1 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.15.26706 h3a45250_0
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
werkzeug 0.14.1 py37_0
wheel 0.32.3 py37_0
widgetsnbextension 3.4.2 py37_0
win_inet_pton 1.0.1 py37_1
win_unicode_console 0.5 py37_0
wincertstore 0.2 py37_0
winpty 0.4.3 4
wrapt 1.10.11 py37hfa6e2cd_2
xlrd 1.2.0 py37_0
xlsxwriter 1.1.2 py37_0
xlwings 0.15.1 py37_0
xlwt 1.3.0 py37_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zeromq 4.2.5 he025d50_1
zict 0.1.3 py37_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0
I have answerd this here, to my understanding this error is caused by the missing/misplacement of libcrypto file in anaconda3/DLLs folder:
From anaconda3\Library\bin copy below files and paste them in anaconda3/DLLs:
- libcrypto-1_1-x64.dll
- libssl-1_1-x64.dll
This can be fixed by manually adding in the PATH variables in PyCharm to the console.
Open your Anaconda cmd
Activate your Conda environment
Get the full PATH value by typing echo %PATH%
if you are on Windows 7/can't copy the output, cd the cmd to your desktop and type echo %PATH% > path_val.txt
this will create a txt file so you can copy/paste the values easier.
In PyCharm, go to Settings -> Build, Execution, Deployment -> Console -> Python Console -> click the folder on the right of Environment variables.
Click the plus button to add a new Environment Variable
The name should be PATH
The value is the entire output from the echo %PATH% command above.
Click OK, then apply.
You can try to set system environment variables, like "C:\Python\Anaconda3;C:\Python\Anaconda3\Scripts;
C:\Python\Anaconda3\Library\bin;".
Only "C:\Python\Anaconda3\Scripts;" is not enough, and it works to me.
I had the same issue on Windows 10 Pro x64 and PyCharm CE 2018.3
A solution that worked for me: Re-install Anaconda3 for all users (with Admin priveledges) and choose "add python.exe to Path" (even though it is nor recommended). Then PyCharm connected successfully without this error.
A work around that also worked: Use another environment (pyenv or conda). It worked for me when I faced the same issue on
Some other suggestions I saw on Internet:
run Anaconda3\Scripts>conda update --all
but this threw the HTTP connection error rises, which might be related.
if running under a virtual env (i.e. your have issued the command: conda activate <env_name>)
The files (libcrypto-1_1-x64.dll and libssl-1_1-x64.dll) to copy are found under:
C:\USER<username>.conda\envs<env_name>\Library\bin
They have to be copied into:
C:\USER<username>.conda\envs<env_name>\DLLs
None of the above worked for me, but instead it was a problem with OpenSSL on Windows 10 Enterprise. I fixed it by downloading and installing OpenSSL from here: https://slproweb.com/products/Win32OpenSSL.html
Thanks for the answer!
This works definately.
I have answerd this here, to my understanding this error is caused by the missing/misplacement of libcrypto file in anaconda3/DLLs folder:
From anaconda3\Library\bin copy below files and paste them in anaconda3/DLLs:
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
In my case the error was a result of spinning pipenv from non-base conda env. Setting variable in PyCharm or moving files in base anaconda structure didn't help, because PyCharm looked for these DLLs in my conda env in the middle.
So I had to move files from base conda structure:
C:\Users<username>\AppData\Local\Continuum\anaconda3\Library\bin
To my conda env from which I spinned the final Pipenv I use in PyCharm:
C:\Users<username>\AppData\Local\Continuum\anaconda3\envs<conda_env_name>\DLLs
The files I had to move to have IPython work correctly:
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
sqlite3.dll
sqlite3.exe
The reason is that not all libraries/binaries are propagated to the virtual envs. Virtual envs are able to find these files in "root Python". Venvs stay lighter thanks to not copying them.
However, PyCharm gets confused in a setup such as mine, and treats the conda env in the middle as a "root Python", and can't find the libraries/bins. This problem can potentially make itself apparent with other dlls or bins.
It may be worth to move all missing files this way.
another solution: edit python3.7's site.py(in Lib dir):
from os.path import join, abspath, dirname
base_path = dirname(dirname(abspath(__file__)))
os.environ['PATH'] = '%s%s' % (
os.environ['PATH'],
join(base_path, 'Library', 'bin'),
)
I had the same issue and my main IDE is Sublime Text 4.
Environment: Windows 10 with Anaconda
What I needed: from cryptography.fernet import Fernet
The marked solution was unachievable for me and the following answer solved it right away:
pip install --upgrade pip
pip uninstall pyopenssl cryptography
pip install pyopenssl cryptography
Validate with:
python -v -c "from OpenSSL import SSL"
Source: https://groups.google.com/g/qatrack/c/24RB6hesOko?pli=1
Incase someone is searching for Eclipse PyDev, It's same as Rob's answer.
No. 4 can be found at Window -> Preferences -> PyDev -> Interpreters -> Python Interpreters -> Environment -> Click New and add PATH
I have updated to Python 3.8 (with miniconda) and it did not work with Pycharm generating "anaconda-environment-import-ssl-dll-load-fail-error". I have tried several proposals here and tweaked env variables in different way w/o much success.
Finally I have updated to Pycharm 2020.2.3 and it worked like a charm, no tweaks ..
I hope this post brings you well. I have environment issues that I would love to get assistance on.
I installed geopandas with command:
conda install -c conda-forge geopandas
Then typed jupyter-notebook and got a nasty error, here is what it reads:
Traceback (most recent call last):
File "/home/mathlizard/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in
import sqlite3
File "/home/mathlizard/anaconda3/lib/python3.6/sqlite3/init.py", line 23, in
from sqlite3.dbapi2 import *
File "/home/mathlizard/anaconda3/lib/python3.6/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ImportError: libncurses.so.6: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mathlizard/anaconda3/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/home/mathlizard/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 84, in
from .services.sessions.sessionmanager import SessionManager
File "/home/mathlizard/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
My attempts
wrote the following commands:
pip install pysqlite2
pip install libsqlite3-dev
sudo apt-get install libsqlite3-dev
pip install pysqlite
conda install pysqlite2
conda install pysqlite
created and edited .condarc file in root directory with following lines of code:
channels:
- conda-forge
- defaults
UPDATES
installed pysqlite with conda install -c kbchoi pysqlite and now the error after typing jupyter-notebook is the following:
Traceback (most recent call last):
File "/home/mathlizard/anaconda3/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/home/mathlizard/anaconda3/lib/python2.7/site-packages/notebook/notebookapp.py", line 85, in
from .services.sessions.sessionmanager import SessionManager
File "/home/mathlizard/anaconda3/lib/python2.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in
from pysqlite2 import dbapi2 as sqlite3
File "/home/mathlizard/anaconda3/lib/python2.7/site-packages/pysqlite2/dbapi2.py", line 28, in
from pysqlite2._sqlite import *
ImportError: libncurses.so.6: cannot open shared object file: No such file or directory
Background info:
which python outputs this: /home/mathlizard/anaconda3/bin/python
which jupyter outputs this: /home/mathlizard/anaconda3/bin/jupyter
my .bashrc file contains these lines of code: export PATH="/home/mathlizard/anaconda3/bin:$PATH"
and export PATH="/home/mathlizard/anaconda2/bin:$PATH"
conda list generates:
Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py27h08a7f0c_0
alabaster 0.7.10 py27he5a193a_0
anaconda 5.2.0 py27_3
anaconda-client 1.6.14 py27_0
anaconda-navigator 1.8.7 py27_0
anaconda-project 0.8.2 py27h236b58a_0
asn1crypto 0.24.0 py27_0
astroid 1.6.3 py27_0
astropy 2.0.6 py27h3010b51_1
attrs 18.1.0 py27_0
babel 2.5.3 py27_0
backports 1.0 py27h63c9359_1
backports.functools_lru_cache 1.5 py27_1
backports.shutil_get_terminal_size 1.0.0 py27h5bc021e_2
backports_abc 0.5 py27h7b3c97b_0
beautifulsoup4 4.6.0 py27h3f86ba9_1
bitarray 0.8.1 py27h14c3975_1
bkcharts 0.2 py27h241ae91_0
blas 1.0 mkl
blaze 0.11.3 py27h5f341da_0
bleach 2.1.3 py27_0
blosc 1.14.3 hdbcaa40_0
bokeh 0.12.16 py27_0
boto 2.48.0 py27h9556ac2_1
bottleneck 1.2.1 py27h21b16a3_0
bzip2 1.0.6 h14c3975_5
ca-certificates 2018.03.07 0
cairo 1.14.12 h7636065_2
cdecimal 2.3 py27h14c3975_3
certifi 2018.4.16 py27_0
cffi 1.11.5 py27h9745a5d_0
chardet 3.0.4 py27hfa10054_1
click 6.7 py27h4225b90_0
cloudpickle 0.5.3 py27_0
clyent 1.2.2 py27h7276e6c_1
colorama 0.3.9 py27h5cde069_0
conda 4.5.11 py27_0
conda-build 3.10.5 py27_0
conda-env 2.6.0 h36134e3_1
conda-verify 2.0.0 py27hf052a9d_0
configparser 3.5.0 py27h5117587_0
contextlib2 0.5.5 py27hbf4c468_0
cryptography 2.2.2 py27h14c3975_0
curl 7.60.0 h84994c4_0
cycler 0.10.0 py27hc7354d3_0
cython 0.28.2 py27h14c3975_0
cytoolz 0.9.0.1 py27h14c3975_0
dask 0.17.5 py27_0
dask-core 0.17.5 py27_0
datashape 0.5.4 py27hf507385_0
dbus 1.13.2 h714fa37_1
decorator 4.3.0 py27_0
distributed 1.21.8 py27_0
docutils 0.14 py27hae222c1_0
entrypoints 0.2.3 py27h502b47d_2
enum34 1.1.6 py27h99a27e9_1
et_xmlfile 1.0.1 py27h75840f5_0
expat 2.2.5 he0dffb1_0
fastcache 1.0.2 py27h14c3975_2
filelock 3.0.4 py27_0
flask 1.0.2 py27_1
flask-cors 3.0.4 py27_0
fontconfig 2.12.6 h49f89f6_0
freetype 2.8 hab7d2ae_1
funcsigs 1.0.2 py27h83f16ab_0
functools32 3.2.3.2 py27h4ead58f_1
futures 3.2.0 py27h7b459c0_0
get_terminal_size 1.0.0 haa9412d_0
gevent 1.3.0 py27h14c3975_0
glib 2.56.1 h000015b_0
glob2 0.6 py27hcea9cbd_0
gmp 6.1.2 h6c8ec71_1
gmpy2 2.0.8 py27h4cf3fa8_2
graphite2 1.3.11 h16798f4_2
greenlet 0.4.13 py27h14c3975_0
grin 1.2.1 py27_4
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
h5py 2.7.1 py27ha1f6525_2
harfbuzz 1.7.6 h5f0a787_1
hdf5 1.10.2 hba1933b_1
heapdict 1.0.0 py27_2
html5lib 1.0.1 py27h5233db4_0
icu 58.2 h9c2bf20_1
idna 2.6 py27h5722d68_1
imageio 2.3.0 py27_0
imagesize 1.0.0 py27_0
intel-openmp 2018.0.0 8
ipaddress 1.0.22 py27_0
ipykernel 4.8.2 py27_0
ipython 5.7.0 py27_0
ipython_genutils 0.2.0 py27h89fb69b_0
ipywidgets 7.2.1 py27_0
isort 4.3.4 py27_0
itsdangerous 0.24 py27hb8295c1_1
jbig 2.1 hdba287a_0
jdcal 1.4 py27_0
jedi 0.12.0 py27_1
jinja2 2.10 py27h4114e70_0
jpeg 9b h024ee3a_2
jsonschema 2.6.0 py27h7ed5aa4_0
jupyter 1.0.0 py27_4
jupyter_client 5.2.3 py27_0
jupyter_console 5.2.0 py27hc6bee7e_1
jupyter_core 4.4.0 py27h345911c_0
jupyterlab 0.32.1 py27_0
jupyterlab_launcher 0.10.5 py27_0
kiwisolver 1.0.1 py27hc15e7b5_0
lazy-object-proxy 1.3.1 py27h682c727_0
libcurl 7.60.0 h1ad7b7a_0
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 hd88cf55_4
libgcc-ng 7.2.0 hdf63c60_3
libgfortran-ng 7.2.0 hdf63c60_3
libpng 1.6.34 hb9fc6fc_0
libsodium 1.0.16 h1bed415_0
libssh2 1.8.0 h9cfc8f7_4
libstdcxx-ng 7.2.0 hdf63c60_3
libtiff 4.0.9 he85c1e1_1
libtool 2.4.6 h544aabb_3
libxcb 1.13 h1bed415_1
libxml2 2.9.8 h26e45fe_1
libxslt 1.1.32 h1312cb7_0
llvmlite 0.23.1 py27hdbcaa40_0
locket 0.2.0 py27h73929a2_1
lxml 4.2.1 py27h23eabaa_0
lzo 2.10 h49e0be7_2
markupsafe 1.0 py27h97b2822_1
matplotlib 2.2.2 py27h0e671d2_1
mccabe 0.6.1 py27h0e7c7be_1
mistune 0.8.3 py27h14c3975_1
mkl 2018.0.2 1
mkl-service 1.1.2 py27hb2d42c5_4
mkl_fft 1.0.1 py27h3010b51_0
mkl_random 1.0.1 py27h629b387_0
more-itertools 4.1.0 py27_0
mpc 1.0.3 hec55b23_5
mpfr 3.1.5 h11a74b3_2
mpmath 1.0.0 py27h9669132_2
msgpack-python 0.5.6 py27h6bb024c_0
multipledispatch 0.5.0 py27_0
navigator-updater 0.2.1 py27_0
nbconvert 5.3.1 py27he041f76_0
nbformat 4.4.0 py27hed7f2b2_0
ncurses 6.1 hf484d3e_0
networkx 2.1 py27_0
nltk 3.3.0 py27_0
nose 1.3.7 py27heec2199_2
notebook 5.5.0 py27_0
numba 0.38.0 py27h637b7d7_0
numexpr 2.6.5 py27h7bf3b9c_0
numpy 1.14.3 py27hcd700cb_1
numpy-base 1.14.3 py27h9be14a7_1
numpydoc 0.8.0 py27_0
odo 0.5.1 py27h9170de3_0
olefile 0.45.1 py27_0
openpyxl 2.5.3 py27_0
openssl 1.0.2o h20670df_0
packaging 17.1 py27_0
pandas 0.23.0 py27h637b7d7_0
pandoc 1.19.2.1 hea2e7c5_1
pandocfilters 1.4.2 py27h428e1e5_1
pango 1.41.0 hd475d92_0
parso 0.2.0 py27_0
partd 0.3.8 py27h4e55004_0
patchelf 0.9 hf79760b_2
path.py 11.0.1 py27_0
pathlib2 2.3.2 py27_0
patsy 0.5.0 py27_0
pcre 8.42 h439df22_0
pep8 1.7.1 py27_0
pexpect 4.5.0 py27_0
pickleshare 0.7.4 py27h09770e1_0
pillow 5.1.0 py27h3deb7b8_0
pip 10.0.1 py27_0
pixman 0.34.0 hceecf20_3
pkginfo 1.4.2 py27_1
pluggy 0.6.0 py27h1f4f128_0
ply 3.11 py27_0
prompt_toolkit 1.0.15 py27h1b593e1_0
psutil 5.4.5 py27h14c3975_0
ptyprocess 0.5.2 py27h4ccb14c_0
py 1.5.3 py27_0
pycairo 1.15.4 py27h1b9232e_1
pycodestyle 2.4.0 py27_0
pycosat 0.6.3 py27ha4109ae_0
pycparser 2.18 py27hefa08c5_1
pycrypto 2.6.1 py27h14c3975_8
pycurl 7.43.0.1 py27hb7f436b_0
pyflakes 1.6.0 py27h904a57d_0
pygments 2.2.0 py27h4a8b6f5_0
pylint 1.8.4 py27_0
pyodbc 4.0.23 py27hf484d3e_0
pyopenssl 18.0.0 py27_0
pyparsing 2.2.0 py27hf1513f8_1
pyqt 5.9.2 py27h751905a_0
pysocks 1.6.8 py27_0
pytables 3.4.3 py27h02b9ad4_2
pytest 3.5.1 py27_0
python 2.7.15 h1571d57_0
python-dateutil 2.7.3 py27_0
pytz 2018.4 py27_0
pywavelets 0.5.2 py27hecda097_0
pyyaml 3.12 py27h2d70dd7_1
pyzmq 17.0.0 py27h14c3975_1
qt 5.9.5 h7e424d6_0
qtawesome 0.4.4 py27hd7914c3_0
qtconsole 4.3.1 py27hc444b0d_0
qtpy 1.4.1 py27_0
readline 7.0 ha6073c6_4
requests 2.18.4 py27hc5b0589_1
rope 0.10.7 py27hfe459b0_0
ruamel_yaml 0.15.35 py27h14c3975_1
scandir 1.7 py27h14c3975_0
scikit-image 0.13.1 py27h14c3975_1
scikit-learn 0.19.1 py27h445a80a_0
scipy 1.1.0 py27hfc37229_0
seaborn 0.8.1 py27h633ea1e_0
send2trash 1.5.0 py27_0
setuptools 39.1.0 py27_0
simplegeneric 0.8.1 py27_2
singledispatch 3.4.0.3 py27h9bcb476_0
sip 4.19.8 py27hf484d3e_0
six 1.11.0 py27h5f960f1_1
snappy 1.1.7 hbae5bb6_3
snowballstemmer 1.2.1 py27h44e2768_0
sortedcollections 0.6.1 py27_0
sortedcontainers 1.5.10 py27_0
sphinx 1.7.4 py27_0
sphinxcontrib 1.0 py27h1512b58_1
sphinxcontrib-websupport 1.0.1 py27hf906f22_1
spyder 3.2.8 py27_0
sqlalchemy 1.2.7 py27h6b74fdf_0
sqlite 3.23.1 he433501_0
ssl_match_hostname 3.5.0.1 py27h4ec10b9_2
statsmodels 0.9.0 py27h3010b51_0
subprocess32 3.5.0 py27h14c3975_0
sympy 1.1.1 py27hc28188a_0
tblib 1.3.2 py27h51fe5ba_0
terminado 0.8.1 py27_1
testpath 0.3.1 py27hc38d2c4_0
tk 8.6.7 hc745277_3
toolz 0.9.0 py27_0
tornado 5.0.2 py27_0
traitlets 4.3.2 py27hd6ce930_0
typing 3.6.4 py27_0
unicodecsv 0.14.1 py27h5062da9_0
unixodbc 2.3.6 h1bed415_0
urllib3 1.22 py27ha55213b_0
wcwidth 0.1.7 py27h9e3e1ab_0
webencodings 0.5.1 py27hff10b21_1
werkzeug 0.14.1 py27_0
wheel 0.31.1 py27_0
widgetsnbextension 3.2.1 py27_0
wrapt 1.10.11 py27h04f6869_0
xlrd 1.1.0 py27ha77178f_1
xlsxwriter 1.0.4 py27_0
xlwt 1.3.0 py27h3d85d97_0
xz 5.2.4 h14c3975_4
yaml 0.1.7 had09818_2
zeromq 4.2.5 h439df22_0
zict 0.1.3 py27h12c336c_0
zlib 1.2.11 ha838bed_2
This steps works for me:
Jupyter Instance
!source activate python3( or other env. , not root )
!conda config --remove channels defaults
!conda config --add channels conda-forge
!conda install "your library"
!conda list
import "your library"