The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Python
 Failed to install packages

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AKazak Posted - 07/21/2021 : 06:34:22 AM
OriginPro 2021b (64-bit) SR2 9.8.5.212
Windows 10 21H1 x64

Greetings!

I couldn't install the following packages using Tools | Python Packages | Install:
  • glob

  • fnmatch


How do I fix this?

---
Andrey
4   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 07/27/2021 : 5:00:09 PM
By the way, what does this option do?



---
Andrey
AKazak Posted - 07/21/2021 : 10:55:45 PM
quote:
Originally posted by cpyang

these are built-in, I tried both:


from glob import glob

mydir = "C:/tmp/"

file_list = glob(mydir + "*.opju")
print('file_list {}'.format(file_list))


and


import os
from fnmatch import fnmatch

mydir = "C:/tmp"
file_list = [file for file in os.listdir(mydir) if fnmatch(file, '*.opju')]

print('file_list {}'.format(file_list))



No need to install.

CP




Dear CP,

OK, got it.
It would be great to have Origin reporting that these are already installed.

---
Andrey
cpyang Posted - 07/21/2021 : 4:58:20 PM
these are built-in, I tried both:


from glob import glob

mydir = "C:/tmp/"

file_list = glob(mydir + "*.opju")
print('file_list {}'.format(file_list))


and


import os
from fnmatch import fnmatch

mydir = "C:/tmp"
file_list = [file for file in os.listdir(mydir) if fnmatch(file, '*.opju')]

print('file_list {}'.format(file_list))



No need to install.

CP
AKazak Posted - 07/21/2021 : 06:41:51 AM
quote:
ERROR: Could not find a version that satisfies the requirement glob (from versions: none)
ERROR: No matching distribution found for glob
Press any key to continue . . .


---
Andrey

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000