Register for your free account! | Forgot your password?

Go Back   elitepvpers > Off-Topics > Technical Support > Unix/Linux
You last visited: Today at 21:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Python Versions Probleme

Discussion on Python Versions Probleme within the Unix/Linux forum part of the Technical Support category.

Reply
 
Old   #1


 
Reaper of Souls's Avatar
 
elite*gold: 30
Join Date: Oct 2013
Posts: 916
Received Thanks: 36
Python Versions Probleme

Servus,

Ich habe das Problem dass ich django nicht installieren kann weil ich zwei python Versionen habe 2.7 und 3.6 und aus irgendwelchen Gründen ignoriert er die 3.6 Version.

Wenn ich python -V mache kommt direkt 2.7 wenn ich das mitm anderen Befehl mache zeigt er mir aber auch an dass ich 3.6 habe.

Python 2.7 kann ich aber auch net deinstallieren weils mirs System sonst zerbügelt.

Terminalausgabe:

Code:
==========================
Unsupported Python version
==========================

This version of Django requires Python 3.5, but you're trying to
install it on Python 2.7.

This may be because you are using a version of pip that doesn't
understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:

    $ python -m pip install --upgrade pip setuptools
    $ python -m pip install django

This will install the latest version of Django which works on your
version of Python. If you can't upgrade your pip (or Python), request
an older version of Django:

    $ python -m pip install "django<2"
Kann ich das script irgendwie mit 3.6 ausführen?
Reaper of Souls is offline  
Old 01/31/2018, 23:33   #2
 
Der-Eddy's Avatar
 
elite*gold: 205
Join Date: Nov 2008
Posts: 67,906
Received Thanks: 19,505
Versuch mal python3 anstelle von python
In den meisten Distributionen leitet python immer noch zu /usr/bin/python2.7 um
python3 leitet dagegen zu /usr/bin/python3.x um
Gleiche gilt übrigens auch für pip
pip3 leitet meistens zum pip für Python3 um

Alternativ kannst du auch ein anlegen
Der-Eddy is offline  
Old 02/01/2018, 13:30   #3
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
As @ already mentioned it, you can go for the command: python3
prerequisites: you already installed it.

If you want to use the command 'python' as an alias of 'python3' - just
make use of your home bashrc and add an alias.

like:

~/.bashrc or ~/.bash_aliases

Code:
alias python=python3
Take care, if you run custom shell scripts, which probably a part of an automated process, you should
avoid adding aliases - since they would run with python3 instead of python2.7 and might cause conflicts in your process routine.
C_O_R_E is offline  
Reply


Similar Threads Similar Threads
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin, da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben. Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren. Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet. Wer Lust hat und...
[Python]Python Loader vs import
07/29/2013 - Metin2 Private Server - 2 Replies
when i tried to inject my bot with this pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "eigenartig/mainboard.py") syserr shows me: 0728 16:55:05139 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0728 16:55:05139 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0728 16:55:05139 :: CEffectManager::RegisterEffect...
Help to make a python file works with python loader
03/03/2013 - Metin2 - 2 Replies
Hey epvp! I want make a very. Little hack works on pythonn loader can anybody help me please?
Metin2 - Python - Wie Python Hacks verschlüsseln und Server überprüfen (GF/PServe)
09/23/2012 - Metin2 - 2 Replies
Ich wollte fragen, wie man Python Hacks am besten Verschlüsselt ? und wie man feststellen kann ob man auf einem GF / Pserver spielt. ?
Python + Eric Python IDE installieren ?!
07/05/2011 - General Coding - 0 Replies
hat sich erledigt.



All times are GMT +1. The time now is 21:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.