All Questions
Tagged with pyenv python-2.7
26 questions
0
votes
0
answers
96
views
Pip from Python 2.7.10 installed via pyenv-win cannot install any packages
I installed pyenv-win to create virtual environments in windows. One of the environments I need requires Python 2.7.10. To create virtual environments for Python versions below 3.3 I need to install ...
0
votes
0
answers
696
views
Can't install Python 2.7.x using pyenv
I am trying to use pyenv to install Python2.7. It fails, it seems, due to inabilities to download a compatible version of pip. I have already downgraded to pip version 20.3.4, but can't figure out ...
1
vote
2
answers
1k
views
ERROR: The Python zlib extension was not compiled. Missing the zlib?
I'm trying to install Python 2.7.7 using Homebrew AND pyenv on my Mac (MacBook Air, OSX 12.5 Monterrey, 1.6 GHz Dual-Core Intel Core i5) but keep getting this “Missing zlib” error.
Just for ...
1
vote
0
answers
2k
views
How do you install the 'python' command on MacOS v12 Monterey?
I want the python command to work in the zsh terminal and launch python 2.7.
Please Note
Python 2 is NOT pre-installed in MacOS. That ended with v12 MacOS Monterey.
I am NOT looking for Python 3. I ...
3
votes
0
answers
751
views
pyenv unable to install python2.7.7 - fails at final step trying to install pip
I'm trying to install python2.7 on my MacBook with OS Monterey 12.3.1 with the following command:
$ export LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/...
0
votes
1
answer
1k
views
Python 2 and pyenv: build with shared libraries on macOS
I'm trying to install Python 2 with pyenv and shared libraries on macOS 12.3.1 with the command:
export PYTHON_CONFIGURE_OPTS="--enable-shared" && pyenv install 2.7.18
But I get the ...
8
votes
2
answers
7k
views
"pyenv versions" and "python -V" showing different versions
I need to use python 3.8. I installed it using the following command:
pyenv install 3.8.1
Now the output of pyenv versions is:
system
* 3.8.1 (set by /Users/username/.pyenv/version)
Output of ...
1
vote
1
answer
101
views
Can't install Python 2 `gtop` module in virtual environment
I'm trying to run the benchmarks game repo bencher script which was written in python 2 and requires the gtop module, NOT the pygtop module. After searching everywhere and even following their README....
1
vote
0
answers
107
views
How can I use virtualenv to create an environment with an interpreter installed by pyenv?
I'm aware of the -p flag, but whenever I use it to specify an interpreter, the resulting environment can't use pip. I want to use a python 3.x project and a python 2.7 project in the same application -...
1
vote
2
answers
2k
views
Cannot pip install with python 2,7 virtual environment
I am trying to use the following OCR project that is found here on github. I am using python 3 virtual environment. I am on Windows. I installed successfully requirements.txt using Python 3.6.7, ...
3
votes
2
answers
11k
views
pyenv on windows - not recognized as internal or external command
I have a project were I have t use python 2.7 instead of 3.x. In order to do this, I installed pyenv-win on my windows machine but its not working.
I followed the steps mentioned here but still ...
0
votes
1
answer
229
views
ASCII codec error when setting up an virtualenv with pyenv-virtualenv
I need to use different version of python than which is installed on the system. To do this I used penv to install the version I wanted - 2.7.12 and then the proper version shows up when I do:
pyenv ...
0
votes
1
answer
168
views
Tox conditions to create a lib64 symlink
I have two virtual environments, both have the same version of tox (3.13.2) and the same python (2.7.5). Using the same tox.ini file, I get two different behaviours: in one case, there is a lib64 ...
0
votes
1
answer
41
views
Import cElementTree failed with pyenv and python 2.7.12
I have tried to import cElementTree, but failed.
Python 2.7.12 (default, Jul 19 2018, 15:12:44)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>&...
1
vote
1
answer
1k
views
neovim: no module named __future__
When I try to open certain python files in neovim, I get an error:
"pool.py" 667L, 25276C
function provider#python#Call[9]..remote#host#Require[10]..provider#pythonx#Require, line 15
Vim(if):ch 1 was ...