Jump to content


Photo

Module request Python3.6

installation modules python module install request

  • Please log in to reply
5 replies to this topic

#1 frederi6

frederi6

    Newbie

  • Members
  • 3 posts

Posted 27 January 2019 - 04:25 AM

Hey guys,

 

would it be possible to install the following modules for python 3.6:

 

- time

- datetime
- calendar
- Mail_sender

 

server: Johnny

name: frederi6

 

Thank you!!

 



#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,844 posts
  • Gender:Male

Posted 27 January 2019 - 06:04 AM

- time
- datetime
- calendar

These are all part of the default python installation.

- Mail_sender

# pip3.6 install mail_sender
Collecting mail_sender
  Could not find a version that satisfies the requirement mail_sender (from versions: )
No matching distribution found for mail_sender


#3 frederi6

frederi6

    Newbie

  • Members
  • 3 posts

Posted 27 January 2019 - 03:03 PM

Wow, thanks for the quick answer!!

My bad, I mixed it up.

 

I still get a 500 Internal Server Error when i execute the file.

 

The header i use is:

#!/usr/local/bin/python3.6

 

and I saved the files in us-ascii as i read it in this forum.

 

Permissions are 0755


Edited by frederi6, 27 January 2019 - 03:03 PM.


#4 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,844 posts
  • Gender:Male

Posted 27 January 2019 - 05:04 PM

/usr/local/bin/python3.6 doesn't exist. It's /usr/bin/python3.6

#5 frederi6

frederi6

    Newbie

  • Members
  • 3 posts

Posted 27 January 2019 - 06:30 PM

Oh great thank you!

 

And one last question:

 

if i set it up as a cronjob, is this the correct command? 

 

/usr/bin/python3.6 /home/frederi6/public_html/cgi-bin/file.py



#6 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,844 posts
  • Gender:Male

Posted 27 January 2019 - 07:11 PM

Yes.





Also tagged with one or more of these keywords: installation, modules, python, module, install, request

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users