Python Forum
venv fails to link to python-dev include (Python.h)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
venv fails to link to python-dev include (Python.h)
#1
Starting the process of porting to python3. Have setup my virtual env using the new venv. But the tool does not add a link to the python3 dev include files. Thus when installing, with pip, 3rd party modules that compile they fail as Python.h is not found.

I know I have python3-dev installed and can find the py3 version of Python.h, but unlike my python2.7 virtualenv there no link to /usr/include/python3.6 in the venv 'include' dir.

I can add the link, but am concerned that venv did not add this. Even when I used the --system-site-packages option.

Am I missing something?

Thanks.
Reply
#2
you should use pyenv for all virtual environments.
see: https://python-forum.io/Thread-Part-1-Li...nvironment
(check pyenv versions make sure to use latest)
Once properly installed, it makes virtual environment management a snap!
Reply
#3
So I did something wrong. Today I tried again and venv IS creating the link to the py-dev.

Maybe after install of py-dev I needed something (new login) for venv to see it. Or I my fat thumbs try to help. ;-)

Anycase, this is not an issue.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to include one script into another? MorningWave 8 308 Mar-21-2024, 10:34 PM
Last Post: MorningWave
  my venv is not loading njoki 1 181 Mar-20-2024, 10:41 AM
Last Post: snippsat
  how include a python code in notpad++ plugin akbarza 2 581 Sep-25-2023, 08:25 PM
Last Post: deanhystad
  Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical jamalnuman 0 316 Aug-23-2023, 07:48 AM
Last Post: jamalnuman
  Regex Include and Exclude patterns in Same Expression starzar 2 736 May-23-2023, 09:12 AM
Last Post: Gribouillis
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,160 May-10-2023, 02:13 PM
Last Post: Calab
  Python venv and PIP version issue JanOlvegg 2 1,200 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Visual Studio Code venv ibm_db error mesi1000 7 2,664 Nov-13-2022, 12:36 AM
Last Post: snippsat
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,332 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  I can't open a link with Selenium in Python jao 0 1,370 Jan-30-2022, 04:21 AM
Last Post: jao

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020