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 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?
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?
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 ???
@@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 RUclips Kanal zu einem anderen Thema und habe da viel gelernt über das Produzieren von Videos usw.
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)
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
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?
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!
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
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 ;) .
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.
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.
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 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
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
Download FREE Python Cheat Sheets: k0nze.gumroad.com
I spent 6 hours finding the solution. Then, I found your video. Thank buddy
I'm glad the video was helpful for you and that you could fix your problem!
Brilliant. Thanks so much. Clear, concise, correct!
Virtual environments and different python versions were the bane of my existence until this video. Thanks mate!
Super helpful video! Was looking for something similar to NVM for Python and this fit the bill perfectly!
Thank you for your clear explanation of how to manage python versions. First rate.
Thank you so much for this brilliant video and the helpful blog post! It is by far the clearest and most complete explanation I've found.
Thanks for the great video. I have this running on macOS, Win11, and Mint Linux!
Very well explained I wish I found this when I needed it 4 months ago :(
This is golden! Thank you!
I'm happy I could help you out Mahesh!
I get "BUILD FAILED (OS X 12.3 using python-build 20180424)" error with any version of 3.6.x to 3.9.x
I am getting the same error
did you get solution?
thanks! very detailed and helpful! you got yourself a new follower today
High quality video, thank you!
I'm glad the you enjoyed the video and it was helpful for you Corentin!
Great! that is exactly what I need
I'm happy the video was helpful for you!
Thanks a ton for this video.
Thanks for this! Nice website :)
Glad you like it!
Excellent! Thanks for your video
I'm happy the video was helpful for you!
Whoa! No downvotes? Well done!
Great ressource , thanks
I'm glad it was helpful for you Julien!
Humongous thanks 🙏🏻!
It was really helpful. well explained as well.
You were really helpful. Thanks :)
Excellent! Thank you :)
You're very welcome!
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
Why didn't we use pyenv-virtualenv?
Good video. Absolutely awesome!
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?
Very well explained.
Hi @k0nze, thanks for the great content. Is is very helpful
you are awesome man!!
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?
Thanks a lot!!! you're awesome
Thank you Roberth! I'm happy it was helpful for you
Thank you!
Gracias excelemte video, me acabas de salvar y ahorrarme futuros dolores de cabeza
great clear tutorial thanks
@k0nze_builds, what is the purpose of this command -> "xcode-select --install"
Excellent!!
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 ???
Very weel explained!
Which Is the terminal do you use with colored branches?
great channel and content. thanx
Thank you Ghaleb! I'm happy you enjoy the content.
@@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 RUclips Kanal zu einem anderen Thema und habe da viel gelernt über das Produzieren von Videos usw.
@@k0nze_builds alles klaro, 3 Wochen ist ja in der Tat ganz neu. Wünsche Dir viel Erfolg und Spass. Ich bin ja Abonnent und dann up to date
Danke!
Awesome. What are the differences and benefits of pyenv over conda ?
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)
Great job.
I'm glad you enjoyed the video and that it was helpful for you Vickie.
@@k0nze_builds yes really it was helped me.
Ps what profile are you using for your cmd? I like how yours is setup with the blue arrow
thanks for sharing
Thanks for watching!
this is good. thanks
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
global and local command was not working? please guid me and where was the venv file created?
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?
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!
Thanks!
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
Nope, doesn't work
Thank you I got my own solution using ur advice with pyenv init --path
how I do that
which theme are you using with your terminal?
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 ;) .
@@thuggfrogg I see, thank you for that info, I hope to hear some other reasons as well especially from K0nze?
good tutorial
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.
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.
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
thank u
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
@@AiEnthusiast999 Ah probably that is exactly what you suggested but for zsh shell right?
@@romantheroman98 yes
Enjoyed the video, but pyenv is giving me some issues. How do I remove it?
You can remove pyenv by removing the pyenv directory you cloned from github and remove the PATH extension and the init from your zshrc.
@@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
pyenv global 2.7.12
this part is not setting global version in my mac. please help
Is there any warning or error message?
not working for M1
Can pyenv be used together with Poetry?
Yes, you can use pyenv with poetry. I actually use pyenv together with poetry daily.
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
Where do i paste the output?
* system (set by /Users/puneeth.shankar/.pyenv/version)
anaconda3-2022.05
zsh: command not found: python
zsh: command not found: anaconda
thank you. Great video!