AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Python venv4/4/2023 ![]() What this file will be is just, you can list the name of these modules, one on each line, and so that will allow you to install all of them at once.Ġ2:07 And then once that’s downloaded and installed, you can then just open up a Jupyter Notebook by typing in jupyter notebook. So for this course, you’re going to need the numpy module, the matplotlib module, of course, pandas, and jupyter if you’re going to be using Jupyter for the course.Ġ1:48 To install those modules, you can use pip3 install and then pass in the requirements.txt file. Now, this is a good thing to do in general so that you can install whatever modules you want, and all of those modules will be installed in this folder, and then you won’t have any conflicts with other versions of those same modules that maybe, say, you need for a different project or if you’re just experimenting with different versions.Ġ1:15 So this first line, once you’ve done that, you then need to activate that Python installation, and so you would source that and then you navigate using this second line here to the activate script that’s contained inside the bin/ subdirectory of that venv/ folder that you just created.Ġ1:34 And then you need to install the modules. ![]() And within this folder, what this first command will do is install a standalone Python installation. In this case, I’d be using python3 and then using the virtual environment, or venv, module.Ġ0:32 And then what this first command will do is-in your working directory, which you could go ahead and create a separate folder for this course- and then within that folder, run this first command and this will create a new folder called venv. ![]() Now, in order to do this, you need to use the venv module.Ġ0:14 By typing into the console- whether you’re using a Windows, or a Mac machine, or a Linux machine- use your current Python program. 00:00 Another way is to use a virtual environment, which is essentially a standalone Python installation in a specified folder.
0 Comments
Read More
Leave a Reply. |