Skip to content

auto installation of python, libraries & jupyter notebook while creating a virtual python environment in windows

License

Notifications You must be signed in to change notification settings

sujoyshub/jupyter-auto-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jupyter-auto-install

auto installation of python, libraries & jupyter notebook while creating a virtual environment in WINDOWS

  • This powershell script jupyter-auto-install.ps1 will fetch the python version as per the users choice and install it.
  • This scirpt will then create a virtual environment
  • This script will install the python libraries (numpy, pandas & matplotlib)
  • Finally install jupyter notebook and launch it in local browser

The jupyter-auto-install.ps1 scriot does the following in sequential order

  1. Prompt user to input Python version
  2. Construct the URL for the Python installer
  3. Define the path where you want to save the installer
  4. Download the Python installer from www.python.org/ftp
  5. Define the installation directory for Python
    c:\users\$env:username\AppData\Local\Programs\Python\Python312
    
  6. Install Python in silent mode
  7. Define the Python directory
  8. Define the path for the new directory
  9. Check if directory was created successfully
  10. Change directory to the Python Scripts directory
  11. Upgrade pip
  12. Install virtual environment
  13. Create a virtual environment (MLlabs)
    .$pythonDirectory\virtualenv.exe MLlabs
    
    under
    c:\users\$env:username\MLProjects\MLlabs
    
  14. Change directory to project location
  15. Activate the virtual environment
  16. Install numphy library [meant for numerical computing, providing powerful array operations and mathematical functions.]
  17. Install pandas library [meant for data manipulation and analysis, offering data structures and tools for working with structured data.]
  18. Install matplotlib library [meant for creating static, animated, and interactive visualizations in Python]
  19. Install jupyter package
  20. Launch Jupyter notebook on local browser

Note

Due to administartive access restrictions in windows, during the silent python installation step (i.e step 6), please click on yes when administarative prompt is displayed

Important

Due to windows security issue, the step to add python to PATH environment variables in windows in not allowed. In this case please manually add python path to the existing windows environment variables.

About

auto installation of python, libraries & jupyter notebook while creating a virtual python environment in windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published