Comments (5)
Good point! The local set-up is the only place I have used Anaconda. I made a test with this configuration on Ubuntu 20.04 with Python virtual environments and everything works:
python3 -m venv reprodl
source reprodl/bin/activate
pip install notebook matplotlib pandas ipywidgets pathlib
pip install torch torchvision torchaudio
pip install pytorch-lightning
Would there be any issue to this solution in your case?
from reprodl2021.
- Creating a requirements.txt is actually part of one of the exercises. If some of the updates create unexpected changes, I will update the setup instructions to mention a particular version.
- Good point, I followed the PyTorch instructions, so I am guessing
cudatoolkit
is automatically installed in that case.
from reprodl2021.
I am closing it now, I'll update the README and possibly re-open it if I have additional issues with virtual environments. Thanks for the feedback! 🙂
from reprodl2021.
Ok, so you would update the README file to show that conda
isn't strictly needed for the local set-up. One can simply create a Python 3 venv
, activate it and then pip install
stuff to it. Sounds perfect! I liked my solution because it also showed ML users in industry who needed conda
, how to access its goodies without having to rely on Anaconda. However, this is a tangential issue with respect to your course goals. Since you don't use conda
later on, your solution is more straightforward.
Just two minor notes:
- given the course emphasis on reproducibility, wouldn't it be better to freeze the package version requirements in a
requirements.txt
file? I'm sure you did it on purpose, in order to coverrequirements.txt
files later in the course. I was wondering however if there might be a future scenario in which the initial installation (notebook
,matplotlib
....pytorch-lightning
) breaks because of incompatible updates. Probably very unlikely though. - you didn't include
cudatoolkit=10.2
in thepip install
chain here, but it's included in the original one. Is this just a typo, or isn't it actually needed?
from reprodl2021.
Ok! Shall I close the issue or do you want to update the README first and then close the issue yourself?
EDIT: concerning the PyTorch instructions for pip install
, they suggest using pip3
... Not sure if that would make a difference?
from reprodl2021.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reprodl2021.