Skip to main content

All Questions

Tagged with
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 ...
W8_4_it's user avatar
  • 11
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 ...
shbrainard's user avatar
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 ...
Victor Cardozo's user avatar
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 ...
Scott Bishop's user avatar
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/...
sirclaps's user avatar
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 ...
dablak's user avatar
  • 1,516
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 ...
Meysam's user avatar
  • 18.2k
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....
Mario's user avatar
  • 369
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 -...
Elijah Cox's user avatar
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, ...
Perl Del Rey's user avatar
  • 1,089
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 ...
Anonymous's user avatar
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 ...
user2998764's user avatar
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 ...
Sardathrion - against SE abuse's user avatar
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. >>&...
hiropon's user avatar
  • 1,802
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 ...
ewok's user avatar
  • 21.5k

15 30 50 per page