> anaconda-project add-packages --pip requests
Collecting requests
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./envs/default/lib/python3.7/site-packages (from requests) (2020.12.5)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: chardet<5,>=3.0.2 in ./envs/default/lib/python3.7/site-packages (from requests) (4.0.0)
Installing collected packages: urllib3, idna, requests
Successfully installed idna-2.10 requests-2.25.1 urllib3-1.26.4
Using Conda environment /Users/adefusco/Development/AnacondaPlatform/anaconda-project/examples/pip/envs/default.
Added packages to project file: requests.
add pip packages to env-spec
> anaconda-project prepare --env-spec test
...
Executing transaction: ...working... done
#
# To activate this environment, use
#
# $ conda activate /Users/adefusco/Development/AnacondaPlatform/anaconda-project/examples/pip/envs/test
#
# To deactivate an active environment, use
#
# $ conda deactivate
Collecting chardet
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting requests
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./envs/test/lib/python3.7/site-packages (from requests) (2020.12.5)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Installing collected packages: urllib3, idna, chardet, requests
Successfully installed chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.4
The project is ready to run commands.
Use `anaconda-project list-commands` to see what's available.
> anaconda-project add-packages --pip --env-spec test pytest
Collecting pytest
Using cached pytest-6.2.3-py3-none-any.whl (280 kB)
Collecting py>=1.8.2
Using cached py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting packaging
Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting attrs>=19.2.0
Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting importlib-metadata>=0.12
Using cached importlib_metadata-4.0.1-py3-none-any.whl (16 kB)
Collecting iniconfig
Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting pluggy<1.0.0a1,>=0.12
Using cached pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting typing-extensions>=3.6.4
Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting zipp>=0.5
Using cached zipp-3.4.1-py3-none-any.whl (5.2 kB)
Collecting pyparsing>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Installing collected packages: zipp, typing-extensions, pyparsing, importlib-metadata, toml, py, pluggy, packaging, iniconfig, attrs, pytest
Successfully installed attrs-20.3.0 importlib-metadata-4.0.1 iniconfig-1.1.1 packaging-20.9 pluggy-0.13.1 py-1.10.0 pyparsing-2.4.7 pytest-6.2.3 toml-0.10.2 typing-extensions-3.7.4.3 zipp-3.4.1
Using Conda environment /Users/adefusco/Development/AnacondaPlatform/anaconda-project/examples/pip/envs/test.
Added packages to environment test in project file: pytest.
This PR adds several pip improvements (see #181)
anaconda-project prepare
anaconda-project list-packages
anaconda-project add-packages --pip ...
to install packages and add pip packages to the yaml fileanaconda-project lock
TODO:
anaconda-project remove-packages --pip ...
pip install output
list pip packages
locking with pip packages
add pip packages
packages added to default env-spec
add pip packages to env-spec