Question

I can import modules like math but not random. I am using Windows 10. Can anyone tell me how to I load modules please.

I have gone to command line and tried to use pip but pip cannot be found. I have found pip3.8.exe but it just opens an empty command line window, then closes it.

Can someone tell me please how to load modules and how I set paths for pip and python to find them.

Many thanks.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

I would recommend installing pip by following these steps here:

  • Download get-pip.py:

https://bootstrap.pypa.io/get-pip.py

  • Open a command prompt and go to the directory containing get-pip.py

  • Run this command:

python get-pip.py
  • To check if the installation was successful, open a command prompt and run:
pip -V

Note that you would need python installed in order to be able to do the above.

Hope that this helps! Regards, Bobby