--debug
flag: pyenv install --debug 3.9-dev
. But when I run sudo gdb /path/to/.pyenv/versions/3.9-dev-debug/bin/python3.9d
I get Reading symbols from /path/to/.pyenv/versions/3.9-dev-debug/bin/python3.9d...
warning: `/private/var/folders/00/l36df9q14hv13hhw8wglncch0000gr/T/python-build.20201201132008.47447/Python-3.9-dev/Programs/python.o': can't open to read symbols: No such file or directory.
warning: Could not open OSO archive file "/private/var/folders/00/l36df9q14hv13hhw8wglncch0000gr/T/python-build.20201201132008.47447/Python-3.9-dev/libpython3.9d.a"
(No debugging symbols found in /path/to/.pyenv/versions/3.9-dev-debug/bin/python3.9d)
I dug up some history on that empty path element problem.
Reasonable-looking shell startup code export C_INCLUDE_PATH="${C_INCLUDE_PATH}:${TEAM_HOME}/usr/local/include"
ran before anything set C_INCLUDE_PATH
, thus setting it to :/share/team/usr/local/include"
. gcc interprets that as .:/share/team/usr/local/include"
which loaded the wrong include file and led to an obscure error message.
python install
anything fails with the below error message.python install
for any version, it fails with the following error.
Downloading Python-3.6.11.tar.xz...
-> https://www.python.org/ftp/python/3.6.11/Python-3.6.11.tar.xz
Installing Python-3.6.11...
BUILD FAILED (Ubuntu 20.10 using python-build 20180424)
# ... snipped to last few loglines:
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Aborted (core dumped)
make: *** [Makefile:1102: install] Error 134
@Erotemic
The first thing that comes to mind as you seem to be on some Debian linux or derivative (you mentioned buidl-essential) would be the deadsnakes PPA https://launchpad.net/~deadsnakes to get a binary Python package for a given Python version. This would require sudo though.
The second thing that comes to mind in your case and that could be Linux-distro independent would be AppImage, but that might imply you may need to do the packaging in the first place? there may be some Python appimages to reuse.
https://appimage.org/ and https://appimage.github.io/apps/ ?
Snaps and flatpack are of the same style.
pyenv install python-appimage-3.9
and then get an appropriate folder in ~/.pyenv/versions
? Is there any mechanism to expose the shared library with app-image? IIUC, there would be no way to build or use a c-extension-module with python-appimage that requires loading symbols from the libpython.so, correct?
Hello everyone. I have problem with my python symlink after activating new venv with pyenv.
❯ which python
/usr/bin/python
❯ python -V
Python 3.9.4
❯ which pyenv
/home/vicky/.pyenv/bin/pyenv
❯ pyenv versions
* system (set by /home/vicky/.pyenv/version)
3.8.9
❯ pyenv which python
/usr/bin/python
❯ pyenv global
system
❯ pyenv global 3.8.9
❯ pyenv global
3.8.9
❯ which python
/usr/bin/python
❯ pyenv which python
/home/vicky/.pyenv/versions/3.8.9/bin/python
As you see, I still get my original system python version when I do which python
even after activating 3.8.9
. Can anyone help?
thanks in advance
21.04
and default python version is 3.9.4
python-is-python3
package to get around using python
instead of python3