Reply: Re: Issues installing python
No when. I do anything of that sort it says that pip isn't recognised as an internal or external command and that's because it isn't installedI searched the internet and it asked me to check the scripts folder to see if I have pip and it wasn't there...and im pretty sure. That I checked in the correct folder...so after that I installed pip from pypi.org but after that when I ran pip I got an error saying OS ERROR (ERRNO9): Bad file descriptor Pls help me Sent from vivo smartphone > On 10/8/20 9:36 PM, Vedant Nichal wrote: > > Hello, > > > > I am an amateur python developer but I’m facing a lot of issues regarding > > python installation on windows 10...whenever I install python on my > > pc...irrespective of its version my scripts folder is always empty.. > > are you sure you're actually looking in the right place? Python Windows > versions do all come with pip now. > > Can you launch Python itself? > > e.g. from a command shell: > > py > > (that assumes you installed the Python Launcher, which is a good idea if > you used the Windows installer from python.org). > > If that works, then try: > > py -m pip --version > > if you get something comprehensible back, then you have pip installed > fine. Invoke it that way, as "py -m pip" instead of using it as a > standalone command. > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing python
On 10/8/20 9:36 PM, Vedant Nichal wrote: > Hello, > > I am an amateur python developer but I’m facing a lot of issues regarding > python installation on windows 10...whenever I install python on my > pc...irrespective of its version my scripts folder is always empty.. are you sure you're actually looking in the right place? Python Windows versions do all come with pip now. Can you launch Python itself? e.g. from a command shell: py (that assumes you installed the Python Launcher, which is a good idea if you used the Windows installer from python.org). If that works, then try: py -m pip --version if you get something comprehensible back, then you have pip installed fine. Invoke it that way, as "py -m pip" instead of using it as a standalone command. -- https://mail.python.org/mailman/listinfo/python-list
Issues installing python
Hello, I am an amateur python developer but I’m facing a lot of issues regarding python installation on windows 10...whenever I install python on my pc...irrespective of its version my scripts folder is always empty..so I tried installing pip from the zip file available at pypi.org...pip got installed successfully but when I used it I received an error saying… OsError [Errno9]: Bad File Descriptor So, I’m not able to install pip and other modules due to which I’m facing a lot of issues. I would really appreciate a lot if you can help me out of this. I have tried out alternatives for python interpreters like anaconda, miniconda, win python, etc.. But in vain.. I have tried 100s of solutions but still for no good... Requesting you to please please please help me out of this... I will be really happy and grateful to you if you could help me out of this... Thanks and Regards, Vedant Nichal -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
This actually worked!! It's a bare machine with nothing (except the system) using python. -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
On Tue, Dec 2, 2014 at 3:40 AM, billyfurl...@gmail.com wrote: This actually worked!! It's a bare machine with nothing (except the system) using python. Good to know! But, uhh... *what* actually worked? You've posted with no content, so we have no idea which of the several suggestions in this thread worked - and,more importantly, neither does anyone who comes reading the archive. One of the beauties of a good mailing list is that information hangs around; if anyone else has the same problem as you do, s/he can read the response and know what to do, without waiting for the turn-around time of email questions and answers. For that to work, context is crucial. But I'm glad you're sorted out! ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
On Wed, 26 Nov 2014 09:09:30 -0800, billyfurlong wrote: ./configure --prefix=/opt/python2.7 --enable-shared Do you need to install to /opt instead of the default of /usr/local/bin? I have multiple versions of Python installed on a Red Hat system (Centos, but RH should be the same) using the default prefix of /usr/local/bin and don't have any trouble. I recommend you try again with just: ./configure make make altinstall then add an alias to your .bashrc alias python=python2.7 and see how that works for you. -- Steven -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
On Fri, Nov 28, 2014 at 4:40 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Thu, 27 Nov 2014 11:53:10 +1100, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following: billyfurl...@gmail.com wrote: Add this to the bashrc export PATH=$PATH:/opt/python2.7/bin/ I'm not so sure about that, but I don't have time to investigate right now. If this is for the user login (and where it won't conflict with the system startup processes) I'd have swapped the $PATH and /opt... order -- putting the 2.7 bin directory ahead of the system bin directory. I wouldn't. Do you know, for absolute certain, which programs you run that end up calling on Python, perhaps via #!/usr/bin/env python, or perhaps by being shell scripts and running python my_main_module.py, or something? You'd break those. Unless, of course, you're making absolutely sure there's no python command in the /opt/... directory, in which case the PATH order won't have any semantic difference, and directory caching will make sure there's virtually no performance difference, so the current form is just as good. That said, I have never compiled a Python 2, ever. I've always compiled Py3, and let that happily take over the name python3, leaving the system Python 2.x on the name python and python2. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Issues installing Python 2.7
Hi all, Not a python user but I'm trying to upgrade python so I can install pip which is required for one of the apps that I'm installing. I've tried to install using the below instructions, but when I type python I still get the old 2.4.3 version. Oh Red Hat 5.8 is where I'm installing on. yum groupinstall development tools -y yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \ glib-devel expat-devel libGL-devel tk tix gcc-c++ \ libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \ tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \ valgrind-devel -y mkdir tmp cd tmp wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz tar xvfz Python-2.7.5.tgz cd Python-2.7.5 ./configure --prefix=/opt/python2.7 --enable-shared make make altinstall Add this to the bashrc export PATH=$PATH:/opt/python2.7/bin/ Now the installation worked fine but shouldn't I see that it's using the correct version??? I also did try to run /opt/python2.7/bin/python2.7 and it give me this. [root@wmy machine bin]# python2.7 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory Please help the newb. He's frustrated. -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
On Thu, Nov 27, 2014 at 4:09 AM, billyfurl...@gmail.com wrote: Hi all, Not a python user but I'm trying to upgrade python so I can install pip which is required for one of the apps that I'm installing. I've tried to install using the below instructions, but when I type python I still get the old 2.4.3 version. Oh Red Hat 5.8 is where I'm installing on. Since RHEL depends on Python's stability, you'll continue to get the old version when you just type 'python'. Changing that would potentially break hundreds of scripts in your system. You're definitely going to have to type 'python2.7' to get the new version. yum groupinstall development tools -y yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \ glib-devel expat-devel libGL-devel tk tix gcc-c++ \ libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \ tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \ valgrind-devel -y mkdir tmp cd tmp wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz tar xvfz Python-2.7.5.tgz cd Python-2.7.5 Hmm, you just grabbed 2.7.5, but there's a 2.7.8 (and 2.7.9 is in RC, coming soon). I don't think it'll make much difference here, but you may as well grab the latest stable. ./configure --prefix=/opt/python2.7 --enable-shared make make altinstall It's been a while since I built a Python 2 from source, but I suspect 'make altinstall' is safe, and the --prefix to configure is unnecessary. However... my suspicion is that you simply need to reference the shared library from the same directory. Add this to the bashrc export PATH=$PATH:/opt/python2.7/bin/ [root@wmy machine bin]# python2.7 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory See if that file exists somewhere in /opt/python2.7 - if it does, you may simply need to add that directory to ld.so.conf (or ld.so.conf.d if that's how your system's set up) and rerun ldconfig. Alternatively, you should be able to run Python directly from the build tree. If that works, you know for sure that it's a simple pathing problem. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
billyfurl...@gmail.com wrote: Hi all, Not a python user but I'm trying to upgrade python so I can install pip which is required for one of the apps that I'm installing. I've tried to install using the below instructions, but when I type python I still get the old 2.4.3 version. Oh Red Hat 5.8 is where I'm installing on. That's good! That means you didn't break the system python, which would be bad. It's probably possible *in principle* to teach Red Hat Linux to use Python 2.7 as the only version of Python installed, but that will probably break a lot of critical system scripts like yum. The safest way to deal with this issue is to Your options are: - upgrade the OS to a more recent version which supports 2.7 out of the box; - explicitly refer to python2.7 instead of python - use an alias, I put this in my bashrc: alias python='python2.7' yum groupinstall development tools -y yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \ glib-devel expat-devel libGL-devel tk tix gcc-c++ \ libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \ tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \ valgrind-devel -y mkdir tmp cd tmp wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz tar xvfz Python-2.7.5.tgz cd Python-2.7.5 ./configure --prefix=/opt/python2.7 --enable-shared make make altinstall So far this all looks good to me. Add this to the bashrc export PATH=$PATH:/opt/python2.7/bin/ I'm not so sure about that, but I don't have time to investigate right now. Now the installation worked fine but shouldn't I see that it's using the correct version??? I also did try to run /opt/python2.7/bin/python2.7 and it give me this. [root@wmy machine bin]# python2.7 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory Please help the newb. He's frustrated. Are you sure that /opt/python2.7/bin/python2.7 even exists? What do ls -l and file say about them? -- Steven -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues installing Python 2.7
To further explain my terse post from before (from my phone), see below. On 11/26/2014 10:09 AM, billyfurl...@gmail.com wrote: Now the installation worked fine but shouldn't I see that it's using the correct version??? I also did try to run /opt/python2.7/bin/python2.7 and it give me this. [root@wmy machine bin]# python2.7 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory Please help the newb. He's frustrated. So the longer answer is that only certain directories are searched by Linux for shared libraries. Python happens to provide a shared library, which it depends on, which is installed by the source tarball in /opt along with the binaries. There are a number of ways you can solve this: - Create a file in /etc/ld.so.conf.d/python2.7.conf and place in it the following path: /opt/python2.7/lib - before running /opt/python2.7/bin/python2.7, set the LD_LIBRARY_PATH environment variable (example in bash): $ LD_LIBRARY_PATH=/opt/python2.7/lib /opt/python2.7/bin/python2.7 - create a wrapper script in /usr/bin that sets LD_LIBRARY_PATH and execs python2.7 I recommend the first as a permanent solution. -- https://mail.python.org/mailman/listinfo/python-list
having issues Installing Python 2.5b3 on Windows XP
I installed python 2.5b3 on my windows XP sp2 box without any issues. I can double click the python program, and idle comes up in the command line window. However when I run python from the command line program cmd.exe, I get a pop-up window with the following error: 16 bit Windows Subsystem - The NTVDM CPU has encountered an illegal instruction. CS:020c IP:0115 OP:0f 00 00 00 00 Choose 'Close' to terminate the application. If I run python from the command line with the full path, C:\Python25\python, no problem. I checked my environment variables and they are pointing to the correct directories. I am at a loss for waht is causing the issue. Active state python 2.4 worked from the command line with no issues. I know 2.5b3 is beta, but I would like to try and get it running properly. At the very least, I would like someone to report this bug so that the final version gets fixed. Please don't say reboot. I have already tried that, same problem. I am going to try to install python 2.4 with the msi installer and see if I have the same issue with that version. If anyone else has any ideas please help. Thanks:) SA -- http://mail.python.org/mailman/listinfo/python-list
Re: having issues Installing Python 2.5b3 on Windows XP
The python 2.4 version msi did no better. Please help. I do not really want to go back to Active State Python. Thanks:) SA Bucco wrote: I am going to try to install python 2.4 with the msi installer and see if I have the same issue with that version. If anyone else has any ideas please help. -- http://mail.python.org/mailman/listinfo/python-list
Re: having issues Installing Python 2.5b3 on Windows XP
Bucco wrote: The python 2.4 version msi did no better. Please help. I do not really want to go back to Active State Python. Thanks:) SA Bucco wrote: I am going to try to install python 2.4 with the msi installer and see if I have the same issue with that version. If anyone else has any ideas please help. It is a beta after all. You should expect some bugs. -- http://mail.python.org/mailman/listinfo/python-list
Re: having issues Installing Python 2.5b3 on Windows XP
Bucco wrote: The python 2.4 version msi did no better. Please help. I do not really want to go back to Active State Python. Thanks:) SA Bucco wrote: I am going to try to install python 2.4 with the msi installer and see if I have the same issue with that version. If anyone else has any ideas please help. It is a beta after all. You should expect some bugs. -- http://mail.python.org/mailman/listinfo/python-list
Re: having issues Installing Python 2.5b3 on Windows XP
I'm getting closer now. I figured out that when I typed python in cmd.exe window it was trying to run the cygwin version of python. I removed that link and cmd.exe now finds the correct version. Therefore, this is not a bug. However, someone should add a caution in the installation instructions for those of us using cygwin on windows. Thanks:) SA -- http://mail.python.org/mailman/listinfo/python-list