Environment: I'm using conda
4.6.7 on a Mac with High Sierra.
I got some legacy Python code, and first of all I'd like to run it. Of course, since this is research code, I didn't expect to find "fancy stuff (!!)" such as a test suite, but I was hoping that at least a requirements.txt
file would be provided. Pipe dream. After GREPping the list of import
s across the various files composing the project, I came up with the following list of packages to be installed:
conda install os sys math time scipy numpy zipfile urllib.request shutil PIL skimage config itertools logging json re random collections matplotlib visualize glob random datetime tensorflow keras colorsys IPython
I put all of them in a single call to conda
, because, according to
you should
Install all the programs that you want in this environment at the same time. Installing 1 program at a time can lead to dependency conflicts.
(btw, is there a way to include a line break in the command, or does it have to be that long?)
However, conda
is giving me the error:
PackagesNotFoundError: The following packages are not available from current channels:
- config
- math
- visualize
- datetime
- urllib.request
- re
- logging
- json
- os
- glob
- collections
- sys
- colorsys
- itertools
- random
- zipfile
- time
- shutil
- skimage
This seems weird to me, because at least some of them are very common. These are the packages in my conda
environment:
# Name Version Build Channel
ca-certificates 2019.1.23 0
certifi 2018.11.29 py36_0
libcxx 4.0.1 hcfea43d_1
libcxxabi 4.0.1 hcfea43d_1
libedit 3.1.20181209 hb402a30_0
libffi 3.2.1 h475c297_4
ncurses 6.1 h0a44026_1
openssl 1.1.1b h1de35cc_0
pip 19.0.3 py36_0
python 3.6.8 haf84260_0
readline 7.0 h1de35cc_5
setuptools 40.8.0 py36_0
sqlite 3.26.0 ha441bb4_0
tk 8.6.8 ha441bb4_0
wheel 0.33.1 py36_0
xz 5.2.4 h1de35cc_4
zlib 1.2.11 h1de35cc_3
How can I solve the above problem?