Hi k0nze, thank you so much for this video, it is so helpful! At 5:08 you mention the pyenv global code, for some reason this doesn't work for me. If I enter pyenv versions, my chosen python version shows, but as soon as I use the global code and open a new terminal, it doesn't show my chosen python version. Do you know why?
Hello, K0onze After following your video step by step and installing python with pyenv i got following error in python console in pycharm: "pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)" how can i fix it?
K0nze what if i already executed the command: "pip3 install virtualenv" and it works?... but when i execute pyenv doesnt works... can i still aproach your solution ???
Hi. Great video and and read on the website site as well. I have 2 questions: 1 - I have installed Xcode, but it wasn't by command line. Do I need to install anyway? 2 - In brew install openssl readline sqlite3 xz zlib, is SQLite the database you use? My idea is to use Mysql to learn and do some tests. In that case do I have to change or has nothing to do with it? Thanks
I'm happy you enjoyed the video Alandson. 1 - XCode installs the command line tools when you installed in with the installer. When you run the command and XCode is already installed it will check that and won't install the command line tools a second time. 2 - SQLite is the standard database that is integrated into Python, it is needed to compile Python from scratch (which pyenv does). Don't change the command otherwise pyenv will will fail. You can install MySQL, MariaDB, Postgres, etc. parallel to SQLite without any issues.
Tried to installed 3.7.2. getting this Error BUILD FAILED (OS X 12.6 using python-build 2.3.5-16-ge0311823) Inspect or clean up the working tree at /var/folders/gn/2tnktwvs1pjbqrg5_mshr1680000gn/T/python-build.20221101133007.5853 Results logged to /var/folders/gn/2tnktwvs1pjbqrg5_mshr1680000gn/T/python-build.20221101133007.5853.log
Hello K0onze, great video and straight to the point, my only question is what's the value? difference? between installing it using brew vs github what extra control or benefit do you get? I am just curious to know, thank you again, subscribed and definitely checking what other cool useful videos you have on your channel.
Great question... So, the value is not having to me ME right now. I'm currently wondering why the library I just downloaded isn't working, despite having downloaded the dependencies. It's super frustrating, and I've been here many times before. Every time I've sorted out this problem in the past, I was able to continue my project without a problem, so it didn't seem like a big deal. But now, I'm realizing that every time I put down python for a month or I switch the types of projects I'm working on (such as API dev vs data science), then I try to go back to whatever I was doing a month ago, shit's broken. So, you won't see the value of doing this if you're doing it right from the beginning. If you want to experience the pain that lead to the need for environment management, then feel free to go ahead and use your base python environment ;) .
Do you have a discord or anything? I seemed to have completely screw my putting and pip on my intel Mac running Monterey. I want Python to recognize Python 3.10 which it currently displays 3.8. I’ve tried everything but I messed something up. When I use pip it shows a location but when I use a pip conman d it says no module found. I tried installing pocketsphinx and since then have been having issues. If you wouldn’t mind helping it would be greatly appreciated. Awesome video!
Hi I have a question here, being Linux and Mac based on Unix, can the python virtual machine created on Mac run on Linux? or do you have to install python on Linux and create a virtual machine there?
Hi @k0nze, thanks for the great content! I was following this guide (I'm pretty new to everything coding btw), and I got a message on terminal that says "zsh: command not found: code" I know there's bash, zhs and even something called fish (?) but I have no idea what the differences are, which one should I use and how to change between them. Does it mean all I've been doing needs to be redone in bash? I'm so lost 😢 (I do have VS Code installed in my Mac btw)
Zsh, Bash and Fish are "shells" (I don't know how to explain what they are, but it's not a big deal). Since the message says "zsh: ..." it means you're using Zsh (which in a lot of things is similar to Bash). The message means it doesn't find a little program called "code" in the PATH (PATH is basically a list of directories in which the system looks for programs or scripts for the terminal). This program calls VSCode to open, so you need to go to VSCode and install "code" in your system so you can call VSCode from the terminal.
@@k0nze_builds wir können ja auf deutsch schreiben. Tübingen habe ich auch mal gewohnt nach den Studi-Zeiten ;-) Genau Deinen Content habe ich eigentlich gesucht. Verwunderlich, dass Du nicht mehr Abonnenten hast. Ist großes Kino hier Dein Installationsvideo. Die Conda usw. Installationen gingen mir auf den Sack. Vielen Dank dafür. VG Evaldo
Tübingen ist eine sehr schöne Stadt. Leider arbeite ich da nur und wohne nicht dort. Mit den Subscribern habe ich noch Zeit. Den Kanal gibt es erst seit drei Wochen. Ich hatte mal einen anderen RU-vid Kanal zu einem anderen Thema und habe da viel gelernt über das Produzieren von Videos usw.
Hi K0nze, I installed pyenv using your video tutorial. I tried to install the 2.6.4 version of python to run an application that requires it. I got this error message, "ERROR: The Python zlib extension was not compiled. Missing the zlib?", and the build failed. I looked online for fixes but I wasn't able to find one that fixed the problem. Any idea why it failed? thank you
Why do I get this: $ python -v zsh: command not found: python if I use this command: $ python3 --version Python 3.9.6 (but I installed the version 3.11.4)
I have installed pyenv on my mac. My sys version is 3.11 and I have a directory where I want to use 3.9. So I have ran pyenv local 3.9.x in that directory and it created that .python-version file though if I type no python ... it says command not found or if I typ python3 in that directory it still shows me the system version 3.11. Any help?
To add the required pyenv initialization to your .zshrc file, you can append the following lines at the end of the file: # Pyenv configuration if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi
@@AiEnthusiast999 I have fixed my problem by adding some lines to my .bash_profile and running source .bash_profile. Now for some reason when running python3 -V the lower python version set via pyenv in my local project is acknowledged
@@k0nze_builds Could you give a bit more of a detailed explanation? I'm really a beginner with this stuff.. Was able to remove the commands from the zshrc and remove the pyenv directory. All of the python versions I installed through pyenv are gone, but pyenv is not.
@@kreestheshooter When you removed the pyenv directory and all the lines added to the zshrc pyenv is uninstalled otherwise you have missed removing something. Also consult the official uninstall instructions: github.com/pyenv/pyenv#uninstalling-pyenv
For anyone who notices that pyenv doesn't change the version output when you run python -V, you need to run pyenv init --path and then open a new shell, then changing the pyenv will change the output of python -V
I cannot install any python version to my mac. I always got this make: *** [Programs/_testembed] Error 1 make: *** Waiting for unfinished jobs.... make: *** [python.exe] Error 1. Could someone help me? Thx
I hope someone could help me. When using : python -m venv .venv It take lot of time and I have to do ctrl-c, but it seem to work. When activating .venv my python command change path but not pip. Dispite having a working pip installed. Using python -venv --without-pip .venv Work fine, but as intended it doesn't install pip. Does anyone know how to solve this strange issue?
I stopped watching when I heard "...and i already installed the xcode command line tools before..." Why? because, in a Tutorial worth watching nothing should be assumed. In a Tutorial worth watching ,you should show how to find out if something is already installed and where and what version and if it needs updating and how... I will stop here...
Great video but this doesn't really work for ARM64 architecture. Would be great if you could upload a video which is specifically for ARM64. Error as below: BUILD FAILED (OS X 12.6 using python-build 2.3.9-1-gff93c58b) Inspect or clean up the working tree at /var/folders/85/f8v3b1zn62j3czh7dwwfm57w0000gn/T/python-build.20221221110735.14977 Results logged to /var/folders/85/f8v3b1zn62j3czh7dwwfm57w0000gn/T/python-build.20221221110735.14977.log Last 10 log lines: "_libintl_textdomain", referenced from: _PyIntl_textdomain in libpython3.9.a(_localemodule.o) _PyIntl_textdomain in libpython3.9.a(_localemodule.o) ld: symbol(s) not found for architecture x86_64 ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Programs/_testembed] Error 1 make: *** Waiting for unfinished jobs.... make: *** [python.exe] Error 1
OOOOOK Ladies and Gentelmen, for people who can't change python version via pyenv global X.X.X, DO NEXT: 1. Type pyenv init --path 2. Copy the output 3. Place it first line in next files: ~/.bashrc, ~/.zshrc, ~/bash_profile 4. Open new terminal and type pyenv global X.X.X again Thank you