https://trello.com/b/PMPjHo7Z/adl4cv-practical
Prerequisites:
- Unix system (Linux or MacOS)
- Python version 3
- Integrated development environment (IDE) (e.g. PyCharm or Sublime Text)
which virtualenv
to point to the installed location.
Also, installing with pip should work (the virtualenv executable should be added to your search path automatically):
pip3 install virtualenv
Execute
virtualenv -p python3 --no-site-packages venv
Basically, this installs a sandboxed Python in the directory svenv
. The
additional argument ensures that sandboxed packages are used even if they had
already been installed globally before.
Whenever you want to use this virtualenv in a shell you have to first activate it by calling:
source venv/bin/activate
To test whether your virtualenv activation has worked, call:
which python
This should now point to .venv/bin/python
.
Installing required packages:
pip3 install -r requirements.txt
pip install tensorflow
pip install tensorboard
pip install tensorflow-gpu
pip install tensorboard
pip3 install torch torchvision
pip install Ipython
pip3 install tensorboard-pytorch --no-cache-dir