You are not logged in. Please login at www.codechef.com to post your questions!

×

list of modules allowed in python 3

list of third party modules of python allowed in codechef?

asked 11 Jan, 20:41

aman06016's gravatar image

3★aman06016
111
accept rate: 0%


Go to codechef.com/ide and try importing the module. If no error is thrown then module is available.

link

answered 12 Jan, 14:48

farhantahir's gravatar image

4★farhantahir
412
accept rate: 0%

I ran the following code on codechef.com/ide
import pip print(sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()]))
Thanks to https://stackoverflow.com/a/23885252/8015602

apparently, I can't copy paste the output in mobile. Check it yourself.
Weirdly, I don't know why it has scikit-learn, pandas etc installed.

link

answered 13 Jan, 14:55

babangain's gravatar image

3★babangain
433213
accept rate: 4%

1

The above code does show all the installed packages, I noticed numpy and scipy are missing. You can get the complete list (as far as I know) in Python 3.6 using
import pkg_resources print(*pkg_resources.working_set, sep='\n')

As of now it shows this list.

(2 days ago) meooow ♦6★

Indeed.

Congratulations for getting hired by Google. Good Luck! @meooow

(2 days ago) babangain3★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×262
×6
×3

question asked: 11 Jan, 20:41

question was seen: 143 times

last updated: 2 days ago