I'm running myself in circles with installs on python these days and I'm not sure why. My gut is telling me I'm installing my packages in some version of python and when I access them they're not being found because it's the wrong path. I'm using venv, python 3.6.5, MacOS. everything I try and install gets:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
for everything I try and install. I've searched this and tried the fix of
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <<whateverpackage>>
no dice. I can get conda to work for installs, but then when I try and initialize in python I get module not found. This makes me think what is happening is that the tools are installing in a different path. which python result:
$ which python
/Users/myname/.pyenv/shims/python
when I ask for the packages installed I get different results as well:
pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=. (legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.3)
setuptools (39.0.1)
verses
conda list
# packages in environment at /anaconda3:
#
# Name Version Build Channel
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.12 py37_0
beautifulsoup4 4.9.1 py37_0
also ran:
$ brew update && brew upgrade
no change. I'm going nuts trying to figure out where I've lost the thread. this feels like a self created problem from venv, but at this point all the packages I install seem to work in conda but fail with pip, and neither function when I access python at the command line.
also, not sure if this will help: I started a virtual env in conda, same problem. my paths:
$echo $PATH
/Users/username/.pyenv/shims:/Users/username/.pyenv/shims:/usr/local/Cellar/pyenv-virtualenv/1.1.5/shims:/Users/username/.pyenv/shims:/anaconda3/envs/venv/bin:/Users/username/miniconda3/bin:/Users/username/miniconda2/bin:/Users/username/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/username/Downloads/chromedriver:/opt/X11/bin
and
$echo $PYTHONPATH
returned nothing.
advice?