Python Forum
How should I run pip-date in python3?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How should I run pip-date in python3?
#6
(Mar-31-2023, 11:00 AM)newbieAuggie2019 Wrote: If I do that in the anaconda prompt on windows, it shows the '"pip-date" is not recognized as an internal or external command [...]' error, which apparently it is due to a wrong... path!!! Alas! (I hate configurating paths, as I usually do it wrong).
You most install pip-date when (base) environment is active,then it will work.
Example.
tom_env) G:\all_flask\2023\web_dir (main)
λ pip install pip-date
Collecting pip-date
  Downloading pip_date-1.0.5-py3-none-any.whl (32 kB)
Requirement already satisfied: requests in g:\miniconda3\envs\tom_env\lib\site-packages (from pip-date) (2.27.1)
Collecting lxml
  Downloading lxml-4.9.2-cp310-cp310-win_amd64.whl (3.8 MB)
     |████████████████████████████████| 3.8 MB 3.3 MB/s
Requirement already satisfied: charset-normalizer~=2.0.0 in g:\miniconda3\envs\tom_env\lib\site-packages (from requests->pip-date) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in g:\miniconda3\envs\tom_env\lib\site-packages (from requests->pip-date) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in g:\miniconda3\envs\tom_env\lib\site-packages (from requests->pip-date) (1.26.11)
Requirement already satisfied: certifi>=2017.4.17 in g:\miniconda3\envs\tom_env\lib\site-packages (from requests->pip-date) (2022.12.7)
Installing collected packages: lxml, pip-date
Successfully installed lxml-4.9.2 pip-date-1.0.5

(tom_env) G:\all_flask\2023\web_dir (main)
λ pip-date

Using cTime for WindowsPE


Package                Installed (cTime)      LastModified (mTime)   Version            Inst     Prec   Type    Loc
-------------------------------------------------------------------------------------------------------------------
absl-py                2021-03-12  11:11:10                          0.12.0             pip             wheel   sys
alembic                2021-09-09  02:04:31                          1.7.1              pip             wheel   sys
.... ect 
This is my own enviroment that i made,i never use (base).
If i go back to (base) it will not work.
(tom_env) G:\all_flask\2023\web_dir (main)
λ activate base

conda.bat activate base

(base) G:\all_flask\2023\web_dir (main)
λ pip-date
'pip-date' is not recognized as an internal or external command,
operable program or batch file.

(base) G:\all_flask\2023\web_dir (main)
The i haver to install pip install pip-date in (base),then it will work,and find package that is only in (base) environment.
Understating how environment works is big part of using Anacond/Miniconda.
There is no paths problem when a environment is activated it will use only path for that environment.

If i look back so have i answered you before about this,look at this Thread again .
Gribouillis likes this post
Reply


Messages In This Thread
RE: How should I run pip-date in python3? - by snippsat - Mar-31-2023, 03:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare current date on calendar with date format file name Fioravanti 1 369 Mar-26-2024, 08:23 AM
Last Post: Pedroski55
  Python date format changes to date & time 1418 4 785 Jan-20-2024, 04:45 AM
Last Post: 1418
  Date format and past date check function Turtle 5 4,514 Oct-22-2021, 09:45 PM
Last Post: deanhystad
  How to add previous date infront of every unique customer id's invoice date ur_enegmatic 1 2,308 Feb-06-2021, 10:48 PM
Last Post: eddywinch82
  How to add date and years(integer) to get a date NG0824 4 2,979 Sep-03-2020, 02:25 PM
Last Post: NG0824
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 5,049 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  Substracting today's date from a date in column of dates to get an integer value firebird 1 2,192 Jul-04-2019, 06:54 PM
Last Post: Axel_Erfurt
  How to change existing date to current date in a filename? shankar455 1 2,369 Apr-17-2019, 01:53 PM
Last Post: snippsat
  Date format conversion "/Date(158889600000)/" lbitten 2 2,920 Nov-29-2018, 02:14 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