Skip to content

Commit

Permalink
improvement(tools/scripts): pip install with user environment (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo authored Jan 19, 2023
1 parent 8bb3fcc commit 7e48fb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/scripts/build_ubuntu_x64_ncnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def install_pyncnn(dep_dir):

# install
os.chdir(ncnn_dir)
os.system('cd python && python -m pip install -e .')
os.system('cd python && python3 -m pip install -e . --user')
ncnn_cmake_dir = os.path.join(ncnn_dir, 'build', 'install', 'lib', 'cmake',
'ncnn')
assert (os.path.exists(ncnn_cmake_dir))
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/build_ubuntu_x64_ort.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def install_ort(dep_dir):
os.chdir(dep_dir)

# install python onnxruntime
os.system('python3 -m pip install onnxruntime==1.8.1')
os.system('python3 -m pip install onnxruntime==1.8.1 --user')
# git clone
if not os.path.exists('onnxruntime-linux-x64-1.8.1'):
os.system(
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/build_ubuntu_x64_tvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def install_tvm(dep_dir):

# install dependency
os.system(
""" python3 -m pip install xgboost decorator psutil scipy attrs tornado """ # noqa: E501
""" python3 -m pip install xgboost decorator psutil scipy attrs tornado --user """ # noqa: E501
)

return tvm_dir
Expand Down

0 comments on commit 7e48fb2

Please sign in to comment.