Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix package install issue (#95)
Browse files Browse the repository at this point in the history
* fix nnictl bug

* fix pakcage install
  • Loading branch information
SparkSnail authored and QuanluZhang committed Sep 19, 2018
1 parent c5e6c6b commit 44be899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/nnicmd/package_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def process_install(package_name):
if PACKAGE_REQUIREMENTS.get(package_name) is None:
print_error('{0} is not supported!' % package_name)
else:
requirements_path = os.path.join(nni.__path__[0], PACKAGE_REQUIREMENTS[package_name], 'requirements.txt')
cmds = ['python3', '-m', 'pip', 'install', '--user', requirements_path]
call(cmds)
requirements_path = os.path.join(nni.__path__[0], PACKAGE_REQUIREMENTS[package_name])
cmds = 'cd ' + requirements_path + ' && python3 -m pip install --user -r requirements.txt'
call(cmds, shell=True)

def package_install(args):
'''install packages'''
Expand Down

0 comments on commit 44be899

Please sign in to comment.