Python Forum
Adding to python environment in pyenv virtual project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding to python environment in pyenv virtual project
#1
I have a virtual environment that uses pyenv python 3.10.4.

Gnu radio is installed in /usr/.../gnuradio

Normally, you would export the PYTHONPATH environment variable in .bashrc to point to the gnuradio library.

However, the only version of python 3.10.4 that I have on my system is located in the .pyenv directory, so I don't think that will work in this instance, and (if possible) I'd like to make gnuradio visible to this project alone.

How can I make gnuradio visible to python only for the pyenv project virtual environment?

Worst case (I guess), is to copy the gnuradio files to the project (rather not do that as it's kludgy).

Any help appreciated.
Reply
#2
Try to extend sys.path in the environment's sitecustomize.py file. Don't use PYTHONPATH.
Reply
#3
I'll give it a go and let you know, sounds like a winner.
Reply
#4
I didn't know gnuradio. It looks very appealing. I add it to my ever growing list of things to think about when I find the time to look into them.
Reply
#5
(Jun-26-2022, 09:04 AM)Gribouillis Wrote: I didn't know gnuradio. It looks very appealing. I add it to my ever growing list of things to think about when I find the time to look into them.
I will use gnuradio in conjunction with PLSDR, and an
This package, written in Python, on initial review looks promising.

The software that I am using now (CubicSDR), image below, works but is difficult to use. The device I am using is the "TRL2832U R820T2 TCXO+BIAS T+HF" and see About cost with antenna and mini-tripod around $30. Be careful (as in about page), as there are a lot of inferior products available.

Thanks for your suggestion, I will be hopefully getting all of this working with PLSDR today or in the next few days.

   
Gribouillis likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Building Mapnik for a pyenv python. Larz60+ 0 1,795 Jul-07-2021, 11:29 PM
Last Post: Larz60+
  Add package to pyenv base interpreter Larz60+ 1 1,848 Sep-11-2020, 11:58 AM
Last Post: mlieqo
  setting up the VS Code to work with Python - virtual environment-configuration apollo 2 5,309 Sep-28-2019, 06:28 PM
Last Post: snippsat
  How to update pyenv pip version so that new virtualenv will use it Larz60+ 4 8,174 Aug-19-2018, 08:39 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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