Open robclemamzn opened 1 year ago
You may benefit from using a virtual environment for your project:
$ python3 -m venv project-env
$ source ./project-env/bin/activate
(project-env) $ pip install iso8601
...
Successfully installed iso8601-2.1.0
(project-env) $ python -c "import iso8601; print(iso8601.parse_date('2023-10-06'))"
2023-10-06 00:00:00+00:00
(project-env) $ deactivate
Here we create a virtual environment in the current directory and then activate it. After that, we install the iso8601
module. Then we demonstrate importing and using it. Lastly, we deactivate the environment.
Thanks for the reply.
Using pip normally, doesn’t put the modules in the correct directories.
Using: python3 -m pip install git+https://github.com/globocom/m3u8
Did work but complains about bad metadata:
python3 -m pip install git+https://github.com/globocom/m3u8
WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name'
Collecting git+https://github.com/globocom/m3u8
Cloning https://github.com/globocom/m3u8 to /private/var/folders/pg/_7m514yd4vj2sf9mlpcr30c8sx8yhm/T/pip-req-build-77f_2viu
Running command git clone --filter=blob:none --quiet https://github.com/globocom/m3u8 /private/var/folders/pg/_7m514yd4vj2sf9mlpcr30c8sx8yhm/T/pip-req-build-77f_2viu
Resolved https://github.com/globocom/m3u8 to commit c741a8ef0b85e682146658109fed5d392c0e4ffd
Preparing metadata (setup.py) ... done
Requirement already satisfied: iso8601 in ./python3.11/site-packages (from m3u8==3.6.0) (2.1.0)
Building wheels for collected packages: m3u8
Building wheel for m3u8 (setup.py) ... done
Created wheel for m3u8: filename=m3u8-3.6.0-py3-none-any.whl size=25579 sha256=1c10154af6c759df8d4f7a696051fd544b61361a012145c323103f8f7077ae9e
Stored in directory: /private/var/folders/pg/_7m514yd4vj2sf9mlpcr30c8sx8yhm/T/pip-ephem-wheel-cache-5qhk3rcm/wheels/43/03/de/348261f07af7cb3d840e0732a509a366b44f39bcc2a59bedc5
Successfully built m3u8
WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name'
Installing collected packages: m3u8
Successfully installed m3u8-3.6.0
WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name'
Same issue for the iso8601 dependency
This command seems to mitigate the metadata issues:
python -m pip install --upgrade --no-cache-dir --use-deprecated=legacy-resolver
thanks again for the prompt response!
From: Bo Bayles @.> Reply-To: micktwomey/pyiso8601 @.> Date: Friday, October 6, 2023 at 9:05 AM To: micktwomey/pyiso8601 @.> Cc: "Clements, Rob" @.>, Author @.***> Subject: Re: [micktwomey/pyiso8601] module installed but not found. (Issue #34)
You may benefit from using a virtual environmenthttps://docs.python.org/3/library/venv.html for your project:
$ python3 -m venv project-env
$ source ./project-env/bin/activate
(project-env) $ pip install iso8601
...
Successfully installed iso8601-2.1.0
(project-env) $ python -c "import iso8601; print(iso8601.parse_date('2023-10-06'))"
2023-10-06 00:00:00+00:00
(project-env) $ deactivate
Here we create a virtual environment in the current directory and then activate it. After that, we install the iso8601 module. Then we demonstrate importing and using it. Lastly, we deactivate the environment.
— Reply to this email directly, view it on GitHubhttps://github.com/micktwomey/pyiso8601/issues/34#issuecomment-1751001716, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASCYA3UCKGNQNESUZ5YQIMLX6AT2XAVCNFSM6AAAAAA5WARZHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGAYDCNZRGY. You are receiving this because you authored the thread.Message ID: @.***>
can you offer any advise about why this module installs but cannot be found?
% pip3 list Package Version
certifi 2023.7.22 charset-normalizer 3.2.0 idna 3.4 iso8601 2.1.0 m3u8 3.6.0 new-reader 0.1.7 pip 23.2.1
host/usr/local/bin % python3 Python 3.11.5 (main, Aug 24 2023, 15:23:30) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type "help", "copyright", "credits" or "license" for more information.