Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paths
#11
Excellent!
Python38 is locked and loaded, and ready to fire (in the morning...)

I updated Anaconda, with conda (finally) working. Conda installed bokeh, and the other three problematic modules were not in its repo.

The error I am seeing with the 'problem' modules seems centered on setup.py calling egg_info to install the module from source. Rather than a wheel.
It doesnt seem to matter whether or not it has an entry_points.txt.

I did an sfc /scannow, which fixed a bunch of dll's and the few it didnt seem to be for foreign languages. A corrupt system lib is possible as the heat wave caused a couple of forced reboots.

Python is currently removed from the environment, though cmder seems to add anaconda at the beginning of the path.

Many thanks again :)
Reply
#12
Installed python.org v3.85 and all went great. Has its own system and users site dirs.

Anaconda Py is working, and working well. But is a little confusing.
It defaults to .org 3.8

   
                                                                                                                                                           
D:\Programs\cmdr                                                                                                                                              
(base) λ py                                                                                                                                                   
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32                                                                
Type "help", "copyright", "credits" or "license" for more information.                                                                                        
(This will also yield the .org C:\Python3.8 paths.)


D:\Programs\cmdr
(base) λ py -3.7 -V
Python 3.7.1rc2 <- This is C:\Python3.7

D:\Programs\cmdr
(base) λ python.exe -c "import sys; print(sys.path)"
['', 'C:\\anabin\\anac\\python37.zip', 'C:\\anabin\\anac\\DLLs', 'C:\\anabin\\anac\\lib', 'C:\\anabin\\anac', 'C:\\Users\\Administrator\\AppData\\Roaming\\Pyt
hon\\Python37\\site-packages', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python\\Python37\\site-packages\\win32', 'C:\\Users\\Administrator\\AppData\\Roami
ng\\Python\\Python37\\site-packages\\win32\\lib', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python\\Python37\\site-packages\\Pythonwin', 'C:\\anabin\\anac\
\lib\\site-packages', 'C:\\anabin\\anac\\lib\\site-packages\\win32', 'C:\\anabin\\anac\\lib\\site-packages\\win32\\lib', 'C:\\anabin\\anac\\lib\\site-packages
\\Pythonwin', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\pla
tformids-0.1.39-py3.7.egg', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\pyfilesysobjects-0.1.34-py3.7.egg', 'C:\\Users\\Administrato
r\\AppData\\Roaming\\Python37\\site-packages\\pysourceinfo-0.1.32-py3.7.egg', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\yapydata-0
.1.41-py3.7.egg', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\pythonids-0.1.40-py3.7.egg', 'C:\\Users\\Administrator\\AppData\\Roami
ng\\Python37\\site-packages\\xmlschema_acue-1.0.13-py3.7.egg', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\libsbml', 'C:\\Users\\Adm
inistrator\\AppData\\Roaming\\Python37\\site-packages\\win32', 'C:\\Users\\Administrator\\AppData\\Roaming\\Python37\\site-packages\\win32\\lib', 'C:\\Users\\
Administrator\\AppData\\Roaming\\Python37\\site-packages\\Pythonwin']

However sys.path here is yielding C:\Anaconda\Python3.7.7
D:\Programs\cmdr
(base) λ python -V
Python 3.7.7 <- Anaconda
[/Python]


Ultimately this raises an interesting question:
Anaconda 3.7 can be updated to 3.8
As I understand it it - it will also upgrade all its packages, apparently through Conda, which does not give me parsing errors (unlike pip).
Will it also attempt to upgrade the rather large users dir?
Which will have many PyPy modules that are not in its repo.
Would a 3.7/3.8 module mixture create problems? (With .pyc files??)
Reply
#13
Don't use py inside a Anaconda base environment,only python and pip or conda.
py is only for version from python.org.
Quote:Anaconda 3.7 can be updated to 3.8
You can create own environment for Python 3.8.5 with conda.
Example with some libraries(just add more later if needed) and Python 3.8.5.
conda create --name my_38env conda jupyterlab pandas requests python=3.8.5
λ conda create --name my_38env conda jupyterlab pandas requests python=3.8.5
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: G:\Anaconda3\envs\my_38env

  added / updated specs:
    - conda
    - jupyterlab
    - pandas
    - python=3.8.5
    - requests
.....

The following NEW packages will be INSTALLED:

  attrs              conda-forge/noarch::attrs-19.3.0-py_0
  backcall           conda-forge/noarch::backcall-0.2.0-pyh9f0ad1d_0
  backports          conda-forge/noarch::backports-1.0-py_2
  backports.functoo~ conda-forge/noarch::backports.functools_lru_cache-1.6.1-py_0
  bleach             conda-forge/noarch::bleach-3.1.5-pyh9f0ad1d_0
  brotlipy           conda-forge/win-64::brotlipy-0.7.0-py38h1e8a9f7_1000
  ca-certificates    conda-forge/win-64::ca-certificates-2020.6.20-hecda079_0
  certifi            conda-forge/win-64::certifi-2020.6.20-py38h32f6830_0
  cffi               conda-forge/win-64::cffi-1.14.1-py38hba49e27_0
  chardet            conda-forge/win-64::chardet-3.0.4-py38h32f6830_1006
  colorama           conda-forge/noarch::colorama-0.4.3-py_0
  conda              conda-forge/win-64::conda-4.8.3-py38h32f6830_2
  conda-package-han~ conda-forge/win-64::conda-package-handling-1.6.0-py38h9d45107_2
  cryptography       conda-forge/win-64::cryptography-3.0-py38hba49e27_0
  decorator          conda-forge/noarch::decorator-4.4.2-py_0
  defusedxml         conda-forge/noarch::defusedxml-0.6.0-py_0
  entrypoints        conda-forge/win-64::entrypoints-0.3-py38h32f6830_1001
  idna               conda-forge/noarch::idna-2.10-pyh9f0ad1d_0
  importlib-metadata conda-forge/win-64::importlib-metadata-1.7.0-py38h32f6830_0
  importlib_metadata conda-forge/noarch::importlib_metadata-1.7.0-0
  intel-openmp       pkgs/main/win-64::intel-openmp-2020.1-216
  ipykernel          conda-forge/win-64::ipykernel-5.3.4-py38h5ca1d4c_0
  ipython            conda-forge/win-64::ipython-7.16.1-py38h23f93f0_0
  ipython_genutils   conda-forge/noarch::ipython_genutils-0.2.0-py_1
  jedi               conda-forge/win-64::jedi-0.17.2-py38h32f6830_0
  jinja2             conda-forge/noarch::jinja2-2.11.2-pyh9f0ad1d_0
  json5              conda-forge/noarch::json5-0.9.4-pyh9f0ad1d_0
  jsonschema         conda-forge/win-64::jsonschema-3.2.0-py38h32f6830_1
  jupyter_client     conda-forge/noarch::jupyter_client-6.1.6-py_0
  jupyter_core       conda-forge/win-64::jupyter_core-4.6.3-py38h32f6830_1
  jupyterlab         conda-forge/noarch::jupyterlab-2.2.2-py_0
  jupyterlab_server  conda-forge/noarch::jupyterlab_server-1.2.0-py_0
  libblas            conda-forge/win-64::libblas-3.8.0-16_mkl
  libcblas           conda-forge/win-64::libcblas-3.8.0-16_mkl
  liblapack          conda-forge/win-64::liblapack-3.8.0-16_mkl
  libsodium          conda-forge/win-64::libsodium-1.0.17-h2fa13f4_0
  m2w64-gcc-libgfor~ pkgs/msys2/win-64::m2w64-gcc-libgfortran-5.3.0-6
  m2w64-gcc-libs     pkgs/msys2/win-64::m2w64-gcc-libs-5.3.0-7
  m2w64-gcc-libs-co~ pkgs/msys2/win-64::m2w64-gcc-libs-core-5.3.0-7
  m2w64-gmp          pkgs/msys2/win-64::m2w64-gmp-6.1.0-2
  m2w64-libwinpthre~ pkgs/msys2/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2
  markupsafe         conda-forge/win-64::markupsafe-1.1.1-py38h9de7a3e_1
  menuinst           conda-forge/win-64::menuinst-1.4.16-py38_0
  mistune            conda-forge/win-64::mistune-0.8.4-py38h9de7a3e_1001
  mkl                pkgs/main/win-64::mkl-2020.1-216
  msys2-conda-epoch  pkgs/msys2/win-64::msys2-conda-epoch-20160418-1
  nbconvert          conda-forge/win-64::nbconvert-5.6.1-py38h32f6830_1
  nbformat           conda-forge/noarch::nbformat-5.0.7-py_0
  notebook           conda-forge/win-64::notebook-6.0.3-py38h32f6830_1
  numpy              conda-forge/win-64::numpy-1.19.1-py38h72c728b_0
  openssl            conda-forge/win-64::openssl-1.1.1g-he774522_1
  packaging          conda-forge/noarch::packaging-20.4-pyh9f0ad1d_0
  pandas             conda-forge/win-64::pandas-1.1.0-py38h7ae7562_0
  pandoc             conda-forge/win-64::pandoc-2.10.1-he774522_0
  pandocfilters      conda-forge/noarch::pandocfilters-1.4.2-py_1
  parso              conda-forge/noarch::parso-0.7.1-pyh9f0ad1d_0
  pickleshare        conda-forge/win-64::pickleshare-0.7.5-py38h32f6830_1001
  pip                conda-forge/noarch::pip-20.2-py_0
  prometheus_client  conda-forge/noarch::prometheus_client-0.8.0-pyh9f0ad1d_0
  prompt-toolkit     conda-forge/noarch::prompt-toolkit-3.0.5-py_1
  pycosat            conda-forge/win-64::pycosat-0.6.3-py38h9de7a3e_1004
  pycparser          conda-forge/noarch::pycparser-2.20-pyh9f0ad1d_2
  pygments           conda-forge/noarch::pygments-2.6.1-py_0
  pyopenssl          conda-forge/noarch::pyopenssl-19.1.0-py_1
  pyparsing          conda-forge/noarch::pyparsing-2.4.7-pyh9f0ad1d_0
  pyrsistent         conda-forge/win-64::pyrsistent-0.16.0-py38h9de7a3e_0
  pysocks            conda-forge/win-64::pysocks-1.7.1-py38h32f6830_1
  python             conda-forge/win-64::python-3.8.5-h5fd99cc_1_cpython
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.1-py_0
  python_abi         conda-forge/win-64::python_abi-3.8-1_cp38
  pytz               conda-forge/noarch::pytz-2020.1-pyh9f0ad1d_0
  pywin32            conda-forge/win-64::pywin32-227-py38hfa6e2cd_0
  pywinpty           conda-forge/win-64::pywinpty-0.5.7-py38_0
  pyzmq              conda-forge/win-64::pyzmq-19.0.1-py38h77b9d75_0
  requests           conda-forge/noarch::requests-2.24.0-pyh9f0ad1d_0
  ruamel_yaml        conda-forge/win-64::ruamel_yaml-0.15.80-py38h9de7a3e_1001
  send2trash         conda-forge/noarch::send2trash-1.5.0-py_0
  setuptools         conda-forge/win-64::setuptools-49.2.0-py38h32f6830_0
  six                conda-forge/noarch::six-1.15.0-pyh9f0ad1d_0
  sqlite             conda-forge/win-64::sqlite-3.32.3-he774522_1
  terminado          conda-forge/win-64::terminado-0.8.3-py38h32f6830_1
  testpath           conda-forge/noarch::testpath-0.4.4-py_0
  tornado            conda-forge/win-64::tornado-6.0.4-py38hfa6e2cd_0
  tqdm               conda-forge/noarch::tqdm-4.48.0-pyh9f0ad1d_0
  traitlets          conda-forge/win-64::traitlets-4.3.3-py38h32f6830_1
  urllib3            conda-forge/noarch::urllib3-1.25.10-py_0
  vc                 conda-forge/win-64::vc-14.1-h869be7e_1
  vs2015_runtime     conda-forge/win-64::vs2015_runtime-14.16.27012-h30e32a0_2
  wcwidth            conda-forge/noarch::wcwidth-0.2.5-pyh9f0ad1d_1
  webencodings       conda-forge/noarch::webencodings-0.5.1-py_1
  wheel              conda-forge/noarch::wheel-0.34.2-py_1
  win_inet_pton      conda-forge/win-64::win_inet_pton-1.1.0-py38_0
  wincertstore       conda-forge/win-64::wincertstore-0.2-py38_1003
  winpty             conda-forge/win-64::winpty-0.4.3-4
  yaml               conda-forge/win-64::yaml-0.2.5-he774522_0
  zeromq             conda-forge/win-64::zeromq-4.3.2-ha925a31_3
  zipp               conda-forge/noarch::zipp-3.1.0-py_0
Quote:Which will have many PyPy modules that are not in its repo.
Would a 3.7/3.8 module mixture create problems? (With .pyc files??)
Now all is separated stand alone,with base will only use Anaconda or a new environment as made over active(my_38env) it will only use that environment.

For all other version when not using Anaconda you use python an py as shown before in Thread.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pdf2image, poppler and paths jehoshua 18 13,960 Jun-14-2022, 06:38 AM
Last Post: jehoshua
  Windows paths issue otalado 3 1,417 May-29-2022, 09:11 AM
Last Post: snippsat
  automatically get absolute paths oclmedyb 1 2,064 Mar-11-2021, 04:31 PM
Last Post: deanhystad
  chkFile with absolute paths JarredAwesome 7 2,917 Sep-21-2020, 03:51 AM
Last Post: bowlofred
  Problems with windows paths delphinis 6 5,052 Jul-21-2020, 06:11 PM
Last Post: Gribouillis
  Shortest paths to win snake and ladder sandaab 5 4,184 Jun-30-2019, 03:20 PM
Last Post: sandaab
  How to handle paths with spaces in the name? zBernie 1 6,668 Nov-22-2018, 04:04 AM
Last Post: ichabod801
  Question: Paths and writing to a file mwmaw 6 6,386 Dec-20-2016, 03:44 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020