Copy folder:
From: D:\Python37\Lib\site-packages\<your-package>
To: D:\Blender 2.92\2.92\python\lib
- scripting - Using 3rd party Python modules - Blender Stack Exchange
- https://blender.stackexchange.com/questions/5287/using-3rd-party-python-modules
| cmd_cp_folder = 'cp -a {} {}' | |
| def copy_folder(src, dst): | |
| src = os.path.join(src, '.') | |
| shell_cmd(cmd_cp_folder.format(src,dst)) | |
| copy_folder('dir1', 'par/dir2') |
| import datetime | |
| def time2str(t): # time to string | |
| if isinstance(t, datetime.datetime): | |
| return t.strftime('%Y-%m-%d %H:%M:%S') | |
| elif isinstance(t, datetime.timedelta): | |
| return '{} hr {:02} min {:02} s'.format(t.seconds//3600, (t.seconds//60)%60, t.seconds%60) | |
| else: | |
| return str(t) |
Copy folder:
From: D:\Python37\Lib\site-packages\<your-package>
To: D:\Blender 2.92\2.92\python\lib
| # set color of promt | |
| # https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.htmlet | |
| set red="%{\033[1;31m%}" | |
| set green="%{\033[0;32m%}" | |
| set yellow="%{\033[1;33m%}" | |
| set blue="%{\033[1;34m%}" | |
| set cyan="%{\033[1;36m%}" | |
| set white="%{\033[0;37m%}" | |
| set clrend="%{\033[0m%}" | |
| # set prompt="%{\033[30;43m%}%/ #%{\033[0;37;40m%} %{\033[0m%}" |
| # TMUX Guide | |
| # https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html#tmux-conf | |
| # tmux(1) - Linux manual page | |
| # https://man7.org/linux/man-pages/man1/tmux.1.html#FORMATS | |
| # 256 Colors - Cheat Sheet - Xterm, HEX, RGB, HSL | |
| # https://www.ditig.com/256-colors-cheat-sheet | |
| # kill tmux process (if stuck) with following commands | |
| # ps aux | grep tmux | |
| # kill -9 <pid> |
Go to GitHub > Settings > Developer Settings > Personal access tokens > Generate new token, and copy it
Create _netrc under C:\Users\<username>, write the following content into it:
machine github.com
login <username>
password ghp_*****************************
Then git bash will use this token to communicate with remote server
Ctrl+Shift+P > Settings > Http: Proxy> Set http://proxy-prc.intel.com:913
Run shell as Administrator:
python -m pip install <package-name>.whl
/simple/<dependency-package>/.--force-reinstall option, since this will make pip to fetch dependencies remotely, which is not suitable for this case.