Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active July 26, 2021 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/c5eb285954153451d58c122552891e84 to your computer and use it in GitHub Desktop.
Save raganmd/c5eb285954153451d58c122552891e84 to your computer and use it in GitHub Desktop.
py -{versionNumber} -m pip install {module} --target="{pathToTargetDir}"
@echo off
set PYTHONDIR='td-python-dep'
set PYVER='3.7'
set MODULE='plyfile'
set TARGETDIR=%~dp0%PYTHONDIR:'=%
if not exist %TARGETDIR% mkdir %TARGETDIR%
py -%PYVER:'=% -m pip install --user --upgrade pip
py -%PYVER:'=% -m pip install %MODULE:'=% --target=%TARGETDIR%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment