User Tools

Site Tools


venvpy:main

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
venvpy:main [2023/03/31 12:24] – created - external edit 127.0.0.1venvpy:main [2023/05/26 10:51] (current) – [Manual import of virtualenv packages] admin
Line 80: Line 80:
 </code> </code>
  
 +=====Manual import of virtualenv packages =====
 +In some cases, for example when using virtualenvs in Coppeliasim python scripts, the virtualenv modules must be manually added to the import path; Example with **pyproj**
 +<code python>
 +import sys
 +# replace /path/to/myenv with appropriate path to virtual environment
 +sys.path.append('/path/to/myenv/lib/pythonX.X/site-packages'
 +</code>
  
  
venvpy/main.txt · Last modified: 2023/05/26 10:51 by admin