-
Notifications
You must be signed in to change notification settings - Fork 401
[Tutorial] How to add another Python version to Laragon
With Laragon, adding another Python version is very easy.
1.Download Python Zip package from my github repo: You can download Python 2.7: https://github.com/leokhoa/laragon/releases/download/portable/python-2.7.13.zip or Python 3.6: https://github.com/leokhoa/laragon/releases/download/portable/python-3.6.1.zip
- Note that you can download and use both (just switch version). Suppose you download Python 2.7. Extract the downloaded to: C:\laragon\bin\python\python-2.7 (If there is no python dir in bin, just create it)
C:\laragon
-- bin
-- python
-- python-2.7
-- .............
- Close Laragon, then open it again (to refresh the Menu). Select the version at: Laragon Menu > Python > Version > python-2.7 Now, open Terminal (Ctrl - Alt - T) and type:
python --version
you should see something like that: Python 2.7.13
pip --version
you should see something like that: pip 9.0.1 ...............
Congrats! Your Laragon now has Python!
Very easy huh. That's all forks!
The zip version of Python from python.org does not include pip!
Download the Download the latest version of Python https://www.python.org/downloads/
When installing Python select custom install and choose Customize install location by clicking Browse and navigate to your laragon directory > bin > python, make folder python-3.12 and select it:
Laragon will then allow the versions to be switched.
![image](https://private-user-images.githubusercontent.com/40126936/327938173-01336b81-aea3-446e-9c36-ef159d63ab37.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzUxOTYsIm5iZiI6MTczOTA3NDg5NiwicGF0aCI6Ii80MDEyNjkzNi8zMjc5MzgxNzMtMDEzMzZiODEtYWVhMy00NDZlLTljMzYtZWYxNTlkNjNhYjM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA0MjEzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1OTBiM2RhNTExY2QzNTkwZGY0MTE4MDYwNmIxZmYxY2IwZDQ3ZWZkOTUzMmRhZTI3NjQxNjMyNjQ1ZjhiZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RBZQpTwEBnp4GQnj979un_mBZbnWgUzijjJuKNzvtUw)
You can now switch versions to Python 3.12 and Laragon will automatically update the path:
Note: You may need to close the Terminal and re-open the Terminal (Ctrl - Alt - T).
If you have any problems check the python.exe is in the correct directory:
C:\laragon\bin\python\python-3.12\python.exe --version
Python 3.12.3
If python.exe isn't in the correct directory, check the structure. Use cut and paste to move the folder so it is the correct structure:
C:\laragon
----- bin
---- python
---- python-3.11
---- ......
---- python.exe
---- ......
---- python-3.12
---- ......
---- python.exe
---- ......
If this still fails, use the Windows add or remove programs to uninstall it, then use the latest Python installer to install it again.