Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(tools/scripts): pip install with user environment #1660

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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