Skip to content

Commit

Permalink
Docs updated re: Anaconda/certifi issue re apache#7373
Browse files Browse the repository at this point in the history
  • Loading branch information
rjurney committed May 1, 2019
1 parent 0ff7029 commit 6af5b3a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,25 @@ echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
```

Developers should use a virtualenv. Anaconda Python users should make sure that conda installs the virtualenv package, otherwise conda packages won't play well with packages installed by pip.
Developers should use a virtualenv. Anaconda Python users should make sure that conda installs the virtualenv package, otherwise conda packages won't play well with packages installed by pip. In addition, Anaconda Python installs its own version of certifi that must be removed minus dependencies for requirements.txt's certifi to install.

```bash
# Conda modified virtualenv on conda-forge to work with pip
conda install --force-reinstall -y virtualenv

# Remove certifi that came with the conda env, install of requirements.txt will restore
conda remove certifi --force
```

For other Python's:

```
# Otherwise pip is fine
pip install virtualenv
```

Then proceed with:

```bash
# Create a virtual environemnt and activate it (recommended)
virtualenv -p python3 venv # setup a python3.6 virtualenv
Expand Down

0 comments on commit 6af5b3a

Please sign in to comment.