Python on Linux Mint: Setting up Linux Mint for Python

  Рет қаралды 18,569

Red Eyed Coder Club

Red Eyed Coder Club

Күн бұрын

In this Python on Linux Mint video I show how to setup Linux Mint for Python development and customize it for beginners.
I used here the Cinnamon desktop environment.
This Python on Linux Mint tutorial is about:
- How to install Pyenv on Linux Mint 20 with Cinnamon (Ubuntu 20) and install the latest Python on Linux Mint.
- How to create and activate Python virtual environments with virtualenv.
- Files and directory structure I use for Python projects.
- How to use bash aliases to make the work in a Linux terminal more convenient.
- How to set a keybinding for the Nemo file manager to open the current directory in a terminal.
Follow me @:
Telegram: t.me/red_eyed_...
Twitter: / codereyed
Facebook: redeyedc...
Timecodes:
04:00 - Installing Pyenv, and Python on Linux Mint
11:49 - Creating a Python Virtual Environment,
16:00 - Creating an alias (to create and activate venv with simple commands),
18:18 - Setting a hotkey for Open in Terminal feature of the Nemo file manager
Links:
github.com/pye...
github.com/pye...
Python build Dependencies:
github.com/pye...
Python on Linux Mint Setup: Setting up Linux Mint for Python
• Python on Linux Mint: ...
➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Red Eyed Coder Club is the best place to learn Python programming and Django:
Subscribe ⇢ / @redeyedcoderclub
#pythononlinux #pythononlinuxmint #installpythonlinux #linuxpython #linuxmintforpython #redeyedcoderclub

Пікірлер: 45
@inksnake1558
@inksnake1558 3 жыл бұрын
I really appreciate this. Will subscribe immediately. I've been on windows for 25 years. But just started to use Mint cinnamon this week. And now i want to learn as much as I can. You have a great way of explaining, and a good voice to listen to. Keep it up.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thank you very much!
@mikesara7032
@mikesara7032 Жыл бұрын
This is amazing! I'm a rookie when it comes to Linux.. Your video is top notch. Thank you!
@br4624
@br4624 3 жыл бұрын
Hands down THE best tutorial I found this year. Sub.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thanks for comment :)
@halcyon321
@halcyon321 Жыл бұрын
Your videos are excellent. I think you should consider writing a book at some point. You have a talent for teaching/explaining things.
@biuku
@biuku 3 жыл бұрын
Very nice -- thank you.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thanks for watching! And for you comment!
@mustafazaman433
@mustafazaman433 Жыл бұрын
SO clearly explained.....thanks a lot.....you should start teaching "Linux" and "Python" as a course.....
@RedEyedCoderClub
@RedEyedCoderClub Жыл бұрын
Thank you!
@mustafazaman433
@mustafazaman433 Жыл бұрын
@@RedEyedCoderClub if a new python version comes...then is the process same?
@RedEyedCoderClub
@RedEyedCoderClub Жыл бұрын
Now to install PyEnv and Python I use my script: github.com/zaemiel/ubuntu-pyenv-installer It's very handy. The rest is the same
@urgot-bo1lz
@urgot-bo1lz 9 ай бұрын
@@RedEyedCoderClub vva command doesn't work
@RedEyedCoderClub
@RedEyedCoderClub 9 ай бұрын
it's not a command it's an alias of several commands. How to create it I said in this video. @@urgot-bo1lz
@amsn10
@amsn10 Жыл бұрын
Parabéns, super didático.
@linuxlegion4312
@linuxlegion4312 3 жыл бұрын
Great explanation, can you do a tutorial how to setup neovim instead of atom,regards
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thank you! To install neo-vim type in a terminal: sudo apt install neovim And to customize it for Python development see this video: kzbin.info/www/bejne/ravVi4OZrM1gmKc But I'll probably make a video about installing neovim
@abrikosa717
@abrikosa717 2 жыл бұрын
Thank you very much for useful videos!
@RedEyedCoderClub
@RedEyedCoderClub 2 жыл бұрын
Thank you very much. Have a nice day!
@alphatwinsfan
@alphatwinsfan Жыл бұрын
Amazing, apparently atom is not being actively developed anymore? So in the 'vva' alias creation i replaced atom with code after installing visual studio and --classic code from snap. Everything else worked perfectly, thanks man!!
@testeteste-em6lh
@testeteste-em6lh 3 жыл бұрын
What a coincidence ... I started using the Mint distribution yesterday, and you come with this tutorial. It hasn't been long since I migrated from windows to Linux, and I felt a huge difference in cursor sensitivity ... Do you know any way to permanently disable mouse acceleration in mint?
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Try to look at System Settings > Hardware section > Mouse and Touchpad. There are options: Custom Acceleration and Custom Sensitivity. But actually I had no issues with it. It's weird.
@testeteste-em6lh
@testeteste-em6lh 3 жыл бұрын
@@RedEyedCoderClub The problem is that when I adjust the sensitivity, the acceleration is adjusted as well. Maybe I just need to get used to it. And thanks for the tutorial, this will be of great help.
@satyajeetpatil8177
@satyajeetpatil8177 3 жыл бұрын
This was amazing
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thank you
@mustafazaman433
@mustafazaman433 Жыл бұрын
Hello again....Can you a video on pipenv and explain the difference between virtualenv and pipenv.....and ofcourse which is better.....with visual studio code
@RedEyedCoderClub
@RedEyedCoderClub Жыл бұрын
Pipenv - is a Python package manager like the Pip and also it creates virtual environments - 2 in 1. Better use Poetry. Virtualenv is a tool for creation and management of Python virtual environments only. To install Python packages you have to use Pip. Right now I use Poetry as the package manager and for virtual environments.
@Someone-tz2vs
@Someone-tz2vs 2 жыл бұрын
Помогите. 11:39 сделал точно как вы только не ставил гит(т.к. он стоит) но python вызывает версию 3.8.10 а pip не распознаёт. Я начинающий пользователь линукса, думаю что-то у меня с символическими сылками.Буду рад любой помощи.
@Someone-tz2vs
@Someone-tz2vs 2 жыл бұрын
Проблему решил. просто в конец .bashrc пишете export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv virtualenv-init -)" сохраняете, заходите в консоль выполняете команду exec $SHELL P.S. До этого я в .bashrc записывал код как в видео там /home/mrx(это я)/.pyenv/ и т.д. Уж не знаю почему сработало, если кто знает напише пожалуйста в комменты)
@RedEyedCoderClub
@RedEyedCoderClub 2 жыл бұрын
Отлично! Хорошо, что сами разобрались. +100 exp, как обычно. Я написал "установщик" Pyenv для Ubuntu-based дистрибутивов: github.com/zaemiel/ubuntu-pyenv-installer
@RedEyedCoderClub
@RedEyedCoderClub 2 жыл бұрын
Это перестало работать с августа 2021, они что-то изменили и у многих возникла такая проблема. Поэтому я написал свой "установщик" pyenv.
@Someone-tz2vs
@Someone-tz2vs 2 жыл бұрын
@@RedEyedCoderClub Спасибо
@jesseschmidt2364
@jesseschmidt2364 3 жыл бұрын
New to linux as I want to learn more in technology and I know linux and python are the foundation. Installed linux mint mate 20 and followed your video on installing python here, everything worked well up untill opening the Nemo text document as it's empty. I tried going to preferences and doing what you said but is still empty. Any suggestions? Thanks and great video I feel more confident now in learning starting programming and development.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Hello, unfortunately the Mate desktop environment uses the Caja file manager instead of the Nemo. I used the Cinnamon DE. I don't use Mate, and can't help you with it. Sorry. Updated the description.
@jesseschmidt2364
@jesseschmidt2364 3 жыл бұрын
@@RedEyedCoderClub thanks anyways, other than that I figure I installed python correctly from your video, just a couple commands prompted me with the "additional space will be used do you wish to continue?" I put yes Ofcourse but do not know why I got that? Thanks again
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
Thanks for watching!
@jhonjaramillo8421
@jhonjaramillo8421 3 жыл бұрын
this is what appears to me when iI install pyenv WARNING: seems you still have not added 'pyenv' to the load path. # (The below instructions are intended for common # shell setups. See the README for more guidance # if they don't apply and/or don't work for you.) # Add pyenv executable to PATH and # enable shims by adding the following # to ~/.profile: export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" # If your ~/.profile sources ~/.bashrc, # the lines need to be inserted before the part # that does that. See the README for another option. # If you have ~/.bash_profile, make sure that it # also executes the above lines -- e.g. by # copying them there or by sourcing ~/.profile # Load pyenv into the shell by adding # the following to ~/.bashrc: eval "$(pyenv init -)" # Make sure to restart your entire logon session # for changes to profile files to take effect. # Load pyenv-virtualenv automatically by adding # the following to ~/.bashrc: eval "$(pyenv virtualenv-init -)" Could you help me with that?
@RedEyedCoderClub
@RedEyedCoderClub 2 жыл бұрын
Did you use github.com/pyenv/pyenv-installer ? In my .bashrc I use only these three lines: export PATH="/home/oleg/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
@quasar-lv6pp
@quasar-lv6pp 3 жыл бұрын
а почему не python -m venv venv?
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
because 'virtualenv venv' is faster, almost instant
@gradedwash
@gradedwash 3 жыл бұрын
This command alias vva="virtualenv venv && source venv/bin/activate && mkdir app && cd app && atom ."in to the .bashrc file found in the home directory did not work so I had to use this instead Try to create the virtual environment using directly on to the terminal already opened from folder python3 -m venv my_env which creates a folder called my_env in the desktop folder you created. All at around 18.14
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
PyEnv installs virtualenv by default. And this alias should work. If you didn't install pyenv so you have to install virtualenv manually. "Doesn't work" - it's too vague. There is no context of your actions - wheather you used pyenv or not and so on. But anyway you can install virtual environment in any way you like.
@gradedwash
@gradedwash 3 жыл бұрын
@@RedEyedCoderClub Do i then work in my created folder as in python3 -m venv venv_name with venv_name being my named folder as... say...hair? or is that my created virtual environment in to which I do not work? if so, what folder do I use and where to work on.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
virtual environment - it's just a concept. Technically a virtual environment is just a folder (a directory) where a Python interpreter and its packages will be installed. You can examing the folder of your virtual environment and you will see a Python interpreter, and installed packages (like requests or bs4 etc). The name of the virtual environment doesn't matter. Also you don't work with the files in it directly - it's not your project. It's just a folder to store dependencies of your own project.
@RedEyedCoderClub
@RedEyedCoderClub 3 жыл бұрын
What video should I make next? Any suggestions? *Write me in comments!* Follow me @: Telegram: t.me/red_eyed_coder_club Twitter: twitter.com/CoderEyed Facebook: fb.me/redeyedcoderclub Help the channel grow! Please Like the video, Comment, SHARE & Subscribe!
Python PyEnv Tutorial: How to Install any Python Version with PyEnv
3:45
Red Eyed Coder Club
Рет қаралды 2,8 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 6 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 55 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 56 МЛН
Linux Mint Tips & Tricks
17:59
ExplainingComputers
Рет қаралды 195 М.
This is perhaps my favorite password manager for the terminal
11:10
Dreams of Code
Рет қаралды 163 М.
Is Linux Mint BETTER Than Windows?
6:27
Techquickie
Рет қаралды 2,1 МЛН
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 521 М.
Why Linux Is Better For Programming
13:32
Hallden
Рет қаралды 2,8 МЛН
5 Most Dangerous Linux Commands
14:03
The Linux Cast
Рет қаралды 6 М.
Installing Linux The "Right" Way
18:43
Chris Titus Tech
Рет қаралды 671 М.
Getting Started on Ollama
11:26
Matt Williams
Рет қаралды 53 М.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,5 МЛН
10 Things To Do on Linux Mint 21 after install...
15:32
InfinitelyGalactic
Рет қаралды 269 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 6 МЛН