python - Django - ResolutionError and DistributionError -
I had to uninstall my DNS == 1.6.4 and install 1.5 for a project, but now when I try starting a project with 1.6.4 PIP and with a I tried installing 1.6.5 but then when I try to start a project; Modules & gt file "/Library/Frameworks/Python.framework/Versions/2.7/bin/django-admin.py", line 4, & lt: That's because you should delete all 1.6.4 files and then install 1.6.5 Should. But now your Linux / Windows also has 1.6.4 files. In Windows, You should delete the file in Python / Lib / Django-VERSION-py2.7.egg To delete or fix VERSION in this not just this. You must delete the following 4 files: django-admin.exe , django-admin.py , django-admin.exe.manifest , django-admin-script.py you can then restore Dijengo (actually In, if you know the file, you can try to edit it with the version change.) In Linux, you can do this. If something is wrong, then you can try to remove it all. django-admin.py startproject PN
traceback (last call final): File "/ Library / Framework / Python.framework / version / 2.7 / bin / django-admin.py", in line 5, in & lt; Module & gt; pkg_resources.run_script ( '(required for Django == 1.6.4', 'django-admin.py') file "/Library/Python/2.7/site-packages/pkg_resources.py", line 534, run_script self.require a) [0] .run_script (script, ns) file "/Library/Python/2.7/site-packages/pkg_resources.py", line 1432, run_script increase ResolutionError ( "a script named% r"% script) pkg_resources in. ResolutionError: There is no script named 'Django-admin.py' martinssmacbook: bin martinspasov $ pip installation django = 1.6.4
Traceback (most recent call last) get ; Import the pkg_resources file "/ Library / Python 2/7 / Site-Package / Confirm / Resources", in line 2876, in & lt; Module & gt; working_set = WorkingSet._build_master (), file "/Library/Python/2.7/site-packages/pkg_resources.py", line 451 _build_master return cls._build_from_requirements (__ requires__) file "/Library/Python/2.7/site-packages / pkg_resources.py ", line 464, _build_from_requirements dists = ws.resolve (reqs, environmental (in)) file" /Library/Python/2.7/site-packages/pkg_resources.py ", line 639, resolution enhancement (request DistributionNotFound ) pkg_resources.DistributionNotFound: Django == 1.6.4 Any ideas onwhat to
Comments
Post a Comment