![]() |
How do I use a whl puython distribution? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How do I use a whl puython distribution? (/thread-37958.html) |
How do I use a whl puython distribution? - barryjo - Aug-14-2022 I just downloaded an orbit prediction package called orbit_predictor-1.15.0.py3-none-any.whl. How do I go about converting this file into python files? also, when I unpack this distribution, I am sure there are many python methods available. Is there a way to easily list all of the available methods? Then of course I hope there are descriptions as to what the methods do. RE: How do I use a whl puython distribution? - Larz60+ - Aug-14-2022 change directory to where wheel has been downloaded then from terminal window: pip install wheelname
RE: How do I use a whl puython distribution? - snippsat - Aug-14-2022 There is no need to download and install wheel(.whl) manually. When it's on PyPi you do this. pip install orbit-predictorThen it download and install all automatic. RE: How do I use a whl puython distribution? - barryjo - Aug-15-2022 I am a bit confused. I installed ...whl and executed and received the following.. ******************************************************************* C:\PythonFiles>pip install orbit_predictor-1.15.0-py3-none-any.whl Processing c:\pythonfiles\orbit_predictor-1.15.0-py3-none-any.whl Collecting sgp4>=2.5 Downloading sgp4-2.21-cp38-cp38-win32.whl (155 kB) |████████████████████████████████| 155 kB 2.2 MB/s Collecting requests Downloading requests-2.28.1-py3-none-any.whl (62 kB) |████████████████████████████████| 62 kB ... Requirement already satisfied: numpy>=1.8.2 in c:\program files (x86)\python38-32\lib\site-packages (from orbit-predictor==1.15.0) (1.21.5) Collecting idna<4,>=2.5 Downloading idna-3.3-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB ... Collecting charset-normalizer<3,>=2 Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB) Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.11-py2.py3-none-any.whl (139 kB) |████████████████████████████████| 139 kB 6.4 MB/s Collecting certifi>=2017.4.17 Downloading certifi-2022.6.15-py3-none-any.whl (160 kB) |████████████████████████████████| 160 kB 6.8 MB/s Installing collected packages: urllib3, idna, charset-normalizer, certifi, sgp4, requests, orbit-predictor Successfully installed certifi-2022.6.15 charset-normalizer-2.1.0 idna-3.3 orbit-predictor-1.15.0 requests-2.28.1 sgp4-2.21 urllib3-1.26.11 WARNING: You are using pip version 21.3.1; however, version 22.2.2 is available. ********************************************************************************* so, where did the files go?? It looks like I should see somewhere?? "Successfully installed certifi-2022.6.15 charset-normalizer-2.1.0 idna-3.3 orbit-predictor-1.15.0 requests-2.28.1 sgp4-2.21 urllib3-1.26.11 " I am looking to see how to use the downloaded modues and where they are??? RE: How do I use a whl puython distribution? - deanhystad - Aug-15-2022 In windows python packages are installed in your python distribution. Let's say you installed your Python in c:\Python\Python3.9. Packages installed using pip would appear in: c:\Python\Python39\Lib\site_packages. RE: How do I use a whl puython distribution? - snippsat - Aug-15-2022 (Aug-15-2022, 01:19 AM)barryjo Wrote: I am looking to see how to use the downloaded modues and where they are???There is no need to look at installed files. Look at orbit-predictor Use example Type python from command line.Then look at examples in link over and test that import works. from orbit_predictor.sources import EtcTLESource from orbit_predictor.locations import ARGIf you don't get any error when Enter in these line the orbit-predictot packag works. RE: How do I use a whl puython distribution? - barryjo - Aug-15-2022 I found the files where you say. If I run the following example below I would get an output in x,y,z format. How would I know the units and orientation of the coordinates? It would be nice if there were some good documentation and better examples. I would guess that the units are in meters, z is aligned with North, x points to Lat/Long 0/0 and y to 0/90 lat/long???? Of course I would have to calculate local Az/El based on my local Lat/Long and the position vector from SGP4. Be nice if there were a module to do this. *********************************************************** Simplified creation of predictor from TLE lines: In [1]: import datetime In [2]: from orbit_predictor.sources import get_predictor_from_tle_lines In [3]: TLE_LINES = ( "1 43204U 18015K 18339.11168986 .00000941 00000-0 42148-4 0 9999", "2 43204 97.3719 104.7825 0016180 271.1347 174.4597 15.23621941 46156") In [4]: predictor = get_predictor_from_tle_lines(TLE_LINES) In [5]: predictor.get_position(datetime.datetime(2019, 1, 1)) Out[5]: Position(when_utc=datetime.datetime(2019, 1, 1, 0, 0), position_ecef=(-5280.795613274576, -3977.487633239489, -2061.43227648734), velocity_ecef=(-2.4601788971676903, -0.47182217472755117, 7.167517631852518), error_estimate=None) *********************************************************************** |