나는이 명령을 pip3 install ipython을 사용합니다. 이 오류가 발생합니다. virtualenv를 설치해야합니까?ipython을 설치하려고하는데 권한 오류가 발생했습니다.
Exception:
Traceback (most recent call last):
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/home/saurabh/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/IPython'
sudo를 추가하십시오. sudo pip3 install IPython' –
NO! **'sudo'를'pip'와 함께 사용하지 마십시오 **. @ cᴏʟᴅsᴘᴇᴇᴅ, 나는 당신에게서 그런 것을 듣기 위하여 실제로 놀랜다. [this] (https://stackoverflow.com/questions/21055859/what-are-theks-rrning-sudo-pip) – mentalita
감사합니다. @COLDSPEED – sdevis