forked from jtheiner/LegoBrickClassification
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.py
31 lines (23 loc) · 1017 Bytes
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#For Blender 2.92:
#You have to have admininistor priviledges so for Windows users
#JUST THIS ONCE open Blender by R-clicking on it in the start menu and select"Run as Administrator"
#Open up the System Console (under the Window menu)
#Then paste and run the following into the scripting workspace and run it
# After it has run, then close and reopen Blender normally
# You can then then use the module as normal with
# import MODULE
#--- FROM HERE ---#
import subprocess
import sys
import os
# path to python.exe
#python_exe = os.path.join(sys.prefix, 'bin', 'python.exe')
python_exe = os.path.join(sys.prefix,'bin','python3.9')
# upgrade pip
subprocess.call([python_exe, "-m", "ensurepip"])
subprocess.call([python_exe, "-m", "pip", "install", "--upgrade", "pip"])
# install required packages
subprocess.call([python_exe, "-m", "pip", "install", "scikit-image"])
subprocess.call([python_exe, "-m", "pip", "install", "pandas"])
subprocess.call([python_exe, "-m", "pip", "install", "wget"])
print("DONE")