2017-11-24 35 views
0

를 사용하여 핍 동결, 나는이 오류했습니다 때"OSError : [errno를 20] 아니 디렉토리"나는 <strong>이</strong> (또는 PIP 동결> requirements.txt)를 동결 PIP 때 플라스크

$ pip freeze 
Error [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/flaskr-0.0.0-py2.7.egg' while executing command git rev-parse 
Exception: 
Traceback (most recent call last): 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/freeze.py", line 86, in run 
    for line in freeze(**freeze_kwargs): 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/operations/freeze.py", line 50, in freeze 
    dependency_links 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/__init__.py", line 255, in from_dist 
    if dist_is_editable(dist) and vcs.get_backend_name(location): 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vcs/__init__.py", line 76, in get_backend_name 
    if vc_type.controls_location(location): 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vcs/git.py", line 292, in controls_location 
    on_returncode='ignore') 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vcs/__init__.py", line 325, in run_command 
    spinner) 
    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 667, in call_subprocess 
    cwd=cwd, env=env) 
    File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ 
    errread, errwrite) 
    File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child 
    raise child_exception 
OSError: [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/flaskr-0.0.0-py2.7.egg' 

I을 일부 패키지를 설치하면 이 아닌 오류가 발생했습니다. 나는 virtualenv를 사용하지 않습니다. 오류에 대한 아이디어가 있으십니까?

감사합니다. 그것은 끝났어,

sudo pip uninstall Flaskr 

그리고 : F.

답변

0

이 Flaskr 그냥 문제 (이 여기 왜 나는 모르겠어 ...) 그래서, 난 그냥 할했다.