Skip to content

pyenv virtualenv does not correctly link the c++ libraries associated to the python package #462

Open
@favrei

Description

@favrei

related to #459

I am using pyenv 3.8.17 with pyenv-virtualenv 1.2.1(commit: c85c1c9) on Pop OS. I created a virtual environment called wristband using
pyenv virtualenv 3.8.17 wristband.

However, when I activate the virtual environment and run python3-config --includes, it shows me a path that does not exist:

/home/pete/.pyenv/versions/3.8.17/envs/wristband/include/python3.8

I suppose the link should be created or the files should be clone to the corresponding location?
Thank you for checking this.

Steps and outputs:

# list headers without activate virtualenv
pete@pop-os:~$ pyenv shell 3.8.17
pete@pop-os:~$ python3-config --includes
-I/home/pete/.pyenv/versions/3.8.17/include/python3.8 -I/home/pete/.pyenv/versions/3.8.17/include/python3.8
(3.8.17/envs/wristband) pete@pop-os:~$ ls /home/pete/.pyenv/versions/3.8.17/include/python3.8/ | head -n10
abstract.h
asdl.h
ast.h
bitset.h
bltinmodule.h
boolobject.h
bytearrayobject.h
bytes_methods.h
bytesobject.h
cellobject.h

# list headers after activated virtualenv
pete@pop-os:~$ pyenv activate 3.8.17/envs/wristband
(3.8.17/envs/wristband) pete@pop-os:~$ python3-config --includes
-I/home/pete/.pyenv/versions/3.8.17/envs/wristband/include/python3.8 -I/home/pete/.pyenv/versions/3.8.17/envs/wristband/include/python3.8
(3.8.17/envs/wristband) pete@pop-os:~$ ls /home/pete/.pyenv/versions/3.8.17/envs/wristband/include/python3.8 | head -n10
ls: cannot access '/home/pete/.pyenv/versions/3.8.17/envs/wristband/include/python3.8': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions