Не могу автоматически установить библиотеки из requirements.txt.
Точнее они устанавливаются, но нужно перезагрузить терминал, чего нет если писать эти команды вручную.
Возможно нужно прописать PATH
(Новичик)
import os
myTem_s = [
'conda list -e > /home/camomile/STEM/requirements.txt',
'conda create --name STEM -y --file /home/camomile/STEM/requirements.txt',
'/home/camomile/miniconda3/bin/conda activate STEM']
for myTem in myTem_s:
os.system (myTem)
/main/linux-64::mccabe-0.6.1-py37_1
mkl pkgsCollecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/camomile/miniconda3/envs/STEM
added / updated specs:
- _libgcc_mutex==0.1=main
- asn1crypto==1.2.0=py37_0
- astroid==2.3.3=py37_0
- blas==1.0=mkl
- ca-certificates==2020.1.1=0
- certifi==2019.11.28=py37_0
- cffi==1.13.0=py37h2e261b9_0
- chardet==3.0.4=py37_1003
- conda-package-handling==1.6.0=py37h7b6447c_0
- conda==4.8.2=py37_0
- cryptography==2.8=py37h1ba5d50_0
- idna==2.8=py37_0
- intel-openmp==2020.0=166
- isort==4.3.21=py37_0
- lazy-object-proxy==1.4.3=py37h7b6447c_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
- libstdcxx-ng==9.1.0=hdf63c60_0
- mccabe==0.6.1=py37_1
- mkl-service==2.3.0=py37he904b0f_0
- mkl==2020.0=166
- mkl_fft==1.0.15=py37ha843d7b_0
- mkl_random==1.1.0=py37hd6b4f25_0
- ncurses==6.1=he6710b0_1
- numpy-base==1.18.1=py37hde5b4d6_1
- numpy==1.18.1=py37h4f9e942_0
- openssl==1.1.1d=h7b6447c_4
- pandas==1.0.1=py37h0573a6f_0
- pip==19.3.1=py37_0
- pycosat==0.6.3=py37h14c3975_0
- pycparser==2.19=py37_0
- pylint==2.4.4=py37_0
- pyopenssl==19.0.0=py37_0
- pysocks==1.7.1=py37_0
- python-dateutil==2.8.1=py_0
- python==3.7.4=h265db76_1
- pytz==2019.3=py_0
- readline==7.0=h7b6447c_5
- requests==2.22.0=py37_0
- ruamel_yaml==0.15.46=py37h14c3975_0
- setuptools==41.4.0=py37_0
- six==1.12.0=py37_0
- sqlite==3.30.0=h7b6447c_0
- tk==8.6.8=hbc83047_0
- tqdm==4.36.1=py_0
- urllib3==1.24.2=py37_0
- wheel==0.33.6=py37_0
- wrapt==1.11.2=py37h7b6447c_0
- xz==5.2.4=h14c3975_4
- yaml==0.1.7=had09818_2
- zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
asn1crypto pkgs/main/linux-64::asn1crypto-1.2.0-py37_0
astroid pkgs/main/linux-64::astroid-2.3.3-py37_0
blas pkgs/main/linux-64::blas-1.0-mkl
ca-certificates pkgs/main/linux-64::ca-certificates-2020.1.1-0
certifi pkgs/main/linux-64::certifi-2019.11.28-py37_0
cffi pkgs/main/linux-64::cffi-1.13.0-py37h2e261b9_0
chardet pkgs/main/linux-64::chardet-3.0.4-py37_1003
conda pkgs/main/linux-64::conda-4.8.2-py37_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.0-py37h7b6447c_0
cryptography pkgs/main/linux-64::cryptography-2.8-py37h1ba5d50_0
idna pkgs/main/linux-64::idna-2.8-py37_0
intel-openmp pkgs/main/linux-64::intel-openmp-2020.0-166
isort pkgs/main/linux-64::isort-4.3.21-py37_0
lazy-object-proxy pkgs/main/linux-64::lazy-object-proxy-1.4.3-py37h7b6447c_0
libedit pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
libffi pkgs/main/linux-64::libffi-3.2.1-hd88cf55_4
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
libgfortran-ng pkgs/main/linux-64::libgfortran-ng-7.3.0-hdf63c60_0
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
mccabe pkgs/main/linux-64::mccabe-0.6.1-py37_1
mkl pkgs/main/linux-64::mkl-2020.0-166
mkl-service pkgs/main/linux-64::mkl-service-2.3.0-py37he904b0f_0
mkl_fft pkgs/main/linux-64::mkl_fft-1.0.15-py37ha843d7b_0
mkl_random pkgs/main/linux-64::mkl_random-1.1.0-py37hd6b4f25_0
ncurses pkgs/main/linux-64::ncurses-6.1-he6710b0_1
numpy pkgs/main/linux-64::numpy-1.18.1-py37h4f9e942_0
numpy-base pkgs/main/linux-64::numpy-base-1.18.1-py37hde5b4d6_1
openssl pkgs/main/linux-64::openssl-1.1.1d-h7b6447c_4
pandas pkgs/main/linux-64::pandas-1.0.1-py37h0573a6f_0
pip pkgs/main/linux-64::pip-19.3.1-py37_0
pycosat pkgs/main/linux-64::pycosat-0.6.3-py37h14c3975_0
pycparser pkgs/main/linux-64::pycparser-2.19-py37_0
pylint pkgs/main/linux-64::pylint-2.4.4-py37_0
pyopenssl pkgs/main/linux-64::pyopenssl-19.0.0-py37_0
pysocks pkgs/main/linux-64::pysocks-1.7.1-py37_0
python pkgs/main/linux-64::python-3.7.4-h265db76_1
python-dateutil pkgs/main/noarch::python-dateutil-2.8.1-py_0
pytz pkgs/main/noarch::pytz-2019.3-py_0
readline pkgs/main/linux-64::readline-7.0-h7b6447c_5
requests pkgs/main/linux-64::requests-2.22.0-py37_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.46-py37h14c3975_0
setuptools pkgs/main/linux-64::setuptools-41.4.0-py37_0
six pkgs/main/linux-64::six-1.12.0-py37_0
sqlite pkgs/main/linux-64::sqlite-3.30.0-h7b6447c_0
tk pkgs/main/linux-64::tk-8.6.8-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.36.1-py_0
urllib3 pkgs/main/linux-64::urllib3-1.24.2-py37_0
wheel pkgs/main/linux-64::wheel-0.33.6-py37_0
wrapt pkgs/main/linux-64::wrapt-1.11.2-py37h7b6447c_0
xz pkgs/main/linux-64::xz-5.2.4-h14c3975_4
yaml pkgs/main/linux-64::yaml-0.1.7-had09818_2
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate STEM
#
# To deactivate an active environment, use
#
# $ conda deactivate
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.