How to install python on Bluehost?

QUESTION POSTED AT 19/08/2019 - 09:27 PM

Answered by answersmine AT 19/08/2019 - 09:40 PM

Bluehost uses the preinstalled version of Python that ships with CentOS. Because of this, it is often not the latest release. This article will explain how to install an updated version of python locally.

Enter the following commands to download and extract Python 3.6.5 to your hosting account.

  1. mkdir ~/python
  2. cd ~/python
  3. wget http://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
  4. tar zxfv Python-2.7.2.tgz
  5. find ~/python -type d | xargs chmod 0755
  6. cd Python-2.7.2

Once extracted you can use the following commands to configure and install Python.

  1. ./configure --prefix=$HOME/python
  2. make
  3. make install

Modify the .bashrc

For your local version of python to load you will need to add it to the .bashrc file.

  1. vim ~/.bashrc
  2. Press /
  3. Press ENTER
  4. export PATH=$HOME/python/Python-2.7.2/:$PATH

Write the changes (press ESC) and close vim:

  • :wq
  • Press Enter
  • source ~/.bashrc

Note: You may need to logout for the environment to update. 

Enter python -V to check the version of python installed.

Post your answer

Related questions

Explain the enumerate function in python

The enumerate function adds a counter to an iterable. So for each element in cursor, a tuple is produced with; the for loop binds that to row number and row. Also, to simplify a commonly used looping idiom

I hope this helps!!

ANSWERED AT 21/09/2019 - 02:31 PM


QUESTION POSTED AT 21/09/2019 - 02:31 PM

What two tasks need to be done after installing a secondary hard drive?

Ribbon cable or SAT cable

ANSWERED AT 21/09/2019 - 05:26 AM


QUESTION POSTED AT 21/09/2019 - 05:26 AM

Ask the user for two positive integers; the first number, a, should be less than the second number, b. Print the average of the numbers from a to b inclusive. [ For example: If the user enters 3 and 7, the code should print 5 ((3+4+5+6+7)/5). ] (python coding)

What you need to do here is increment. Begin by asking the user for the two inputs like you were ( one smaller than the other ) then you would need a loop that kept creating new integers until the desired maxNum is reached. I can write this in Java but not python. in java you would need a 'while loop' and the incrementation '++'. So int1 = 3 and int2 = 7
While (int1 < int2; int++) {
     intAverage = (('integers')/integers.length();
}

ANSWERED AT 20/09/2019 - 04:37 PM


QUESTION POSTED AT 20/09/2019 - 04:37 PM

Why is the wizard able to install the printer when an actual print device is not connected to the computer??

What the wizard does, it adds files so that the computer can work with the printer

ANSWERED AT 20/09/2019 - 11:01 AM


QUESTION POSTED AT 20/09/2019 - 11:01 AM

To create a microsoft�� powerpoint�� presentation based on an installed template, click the

To create a Microsoft power point presentation based on an installed template, click the template section

ANSWERED AT 19/09/2019 - 06:51 AM


QUESTION POSTED AT 19/09/2019 - 06:51 AM

How to code on python

If you want to learn how to code Python, you can go to codecademy to learn.

ANSWERED AT 18/08/2019 - 06:27 PM


QUESTION POSTED AT 18/08/2019 - 06:27 PM

The list of available fonts in the fonts gallery may differ, depending on what fonts you have installed and the type of printer you are using. true or false.

I believe the correct answer is true. The list of available fonts in the fonts gallery may differ, depending on what fonts you have installed and the type of printer you are using. Not all fonts would be available in all computers and for all printers. It should be installed first before use.

ANSWERED AT 17/08/2019 - 09:33 PM


QUESTION POSTED AT 17/08/2019 - 09:33 PM

Once installed what needs done to the drive and what do these two task do

Not quite sure what the question is here, but after installing a drive generally one would format and partition it. 

ANSWERED AT 17/08/2019 - 07:10 PM


QUESTION POSTED AT 17/08/2019 - 07:10 PM

A user calls the front desk and says she cannot install a windows application on her windows 8 computer because she is being denied. What is the most likely reason?

The application is unsupported by the Device tell her to update its 2016 not 1946

ANSWERED AT 17/08/2019 - 11:04 AM


QUESTION POSTED AT 17/08/2019 - 11:04 AM

The type() function in python does what when you give it an object. returns the last keystrokes from the user. fill the object with data. returns the data type of the given object. changes the object���s data type.

I think the correct answer from the choices listed above is the third option. The type() function in python, when given an object, returns the datatype of the given object. Hope this answers the question. Have a nice day. Please feel free to ask more questions.

ANSWERED AT 15/08/2019 - 10:01 PM


QUESTION POSTED AT 15/08/2019 - 10:01 PM

You just bought a new hard drive for your computer you plan to use this as a secondary hard drive to store all um a files once installed what needs to be done to drive and what do these two tests do

Well, you need to partition your hard drive. Partitioning your hard drive designates usable space on your hdd.

And you need to format your hard drive. Formatting installs a file system on to your hard drive, it allows the operating system to read, write and overall understand the data stored on the disk. Without it, an OS cannot keep track of file locations, nor can it typically identify already used sectors (space) on a hdd. 
However, neither of these two concepts are tests.  

ANSWERED AT 02/08/2019 - 12:21 PM


QUESTION POSTED AT 02/08/2019 - 12:21 PM

You just brought a new hard drive for your computer. you plan to use this as a secondary hard drive to store all your school files. once installed, what needs to be done to the drive and what do these two tasks do?

Assuming this is only and external hard drive and there is no operating system installed on it, first, if you can't seem to access the drive, format it to a format your computer should be able to read. Then, I'd recommend organizing everything. Add folders for each class you take, and inside those add folders for actual homework and one for projects. You can add a miscellaneous folder if you'd like, for any extra files you might need to use.

ANSWERED AT 02/08/2019 - 07:00 AM


QUESTION POSTED AT 02/08/2019 - 07:00 AM

You just bought a new hard drive for your computer to be used as a secondary hard drive to store all your files after installing a secondary hard drive what two task need to be done through this management in order for the operating system use the hard drive

The harddrive needs to be partitioned, much like partitioning a room, this is were you allocate space to be used, and used by who. Secondly, a file system needs to installed, to do this you "format" the drive with one of the available File systems that windows can read. Typically on windows this is NTFS or fat32 for older system or devices such as USB sticks.  

ANSWERED AT 01/08/2019 - 10:10 AM


QUESTION POSTED AT 01/08/2019 - 10:10 AM

Which selection below has the greatest storage capacity? A. 30 CDs B. 2 DVD DLs C. 7 DVDs D. 1 BD What makes an active heat sink different from a passive heat sink? A. The active heat sink includes a fan. B. The active sink doesn’t include a fan. C. The active sink is integrated directly into the motherboard. D. The active sink contains a dual processor. Data for which there is temporarily no room in RAM is diverted to where on your computer? A. The paging file on the hard drive B. The system file on the hard drive C. The memory file on the hard drive D. The CPU cache You are shopping for a new computer. You see the memory listing as 1GBX4. What does this mean? A. 4 DDR first generation DIMMs B. 1 GB of memory made up of 4 DIMMs C. 4 GB of memory made up of 4 DIMMs D. 1 DDR fourth generation DIMMS Your mother wants to purchase a larger hard drive for her computer and asks you to see what type of drive interface she has. Her computer is connected to the motherboard by a gray ribbon cable that encases 40 pins. What type of drive interface does she have? A. Solid State B. IDE or EIDE C. SATA D. SCSI What type of device is characteristic of an enterprise environment? A. A workstation used by a retired person B. A workstation used at an engineering firm C. A tablet computer used by an elementary school student D. A notebook used by a college student What type of memory or storage device is prone to losing data if the power goes out? A. A USB stick B. An External Drive C. A DDR SDRAM module D. A SATA drive Which type of device below would you most likely consider installing a SCSI disk in? A. A server B. A notebook C. A laptop D. A desktop 5.0 Points You want to purchase a new hard drive for your workstation and are deciding between an HDD and SDD drive. Which of the selections below is NOT an advantage that SDD has over HDD? A. They don’t get fragmented. B. They create less noise. C. They create less heat. D. They have a higher RPM rate.

1: (C) 7 dvd's, a BD (big data) is a an amount of data that cannot be stored by traditional means, so all though its the biggest, its not a storage device. 

2: (B), it uses a fan.

3: (A), in windows this is called a page file on your hard drive. 

4: (C). Four sticks of 1gb RAM totalling 4gb. 

5: (B), IDE cables are referred to as "ribbon cables" 

6: (B), workstation for an engineering firm. 

7: (C), ram is volatile, meaning its state is liable to change (in this case loosing data when powered off). 

8: (A), a server, all though technically all could. 

9: (D), ssd's do not rotate disks, thus they their RPM cannot be higher. 

ANSWERED AT 28/07/2019 - 11:55 AM


QUESTION POSTED AT 28/07/2019 - 11:55 AM

Which of the following is not a technological way of improving air quality? a. using electrostatic precipitators b. installing solar panels c. composting d. building wind turbines

Composting is not a technological way of improving air quality. correct answer:C Compost is organic material that can be added to soil to help plants grow.  Composting does not lead to improvement of the air quality. All other options are. Solar panels and wind turbines are using renewable energy resources, and by that are reducing the CO2 emission.  


ANSWERED AT 28/07/2019 - 02:33 AM


QUESTION POSTED AT 28/07/2019 - 02:33 AM

After installing the second hard drive, what two tasks need to be done through disk management in order for the operating system to use the hard drive?

You have to assign the drive a partition and a letter in disk management.

ANSWERED AT 28/07/2019 - 01:31 AM


QUESTION POSTED AT 28/07/2019 - 01:31 AM

Assume that two variables, varA and varB, are assigned values, either numbers or strings.. . Write a piece of Python code that prints out one of the following messages:. . Choices: A.\"string involved\" if either varA or varB are strings. . B.\"bigger\" if varA is larger than varB. .C. \"equal\" if varA is equal to varB. .

To answer this programming question:

 

if isinstance(varA, str) or isinstance(varB, str):

    return "string involved"

elif varA > varB:

    return "bigger"

elif varA < varB:

    return "smaller"

else:

    return "equal"

 

I am hoping that these answers have satisfied your queries and it will be able to help you in your endeavors, and if you would like, feel free to ask another question.

ANSWERED AT 27/07/2019 - 05:47 PM


QUESTION POSTED AT 27/07/2019 - 05:47 PM

You just brought a new hard drive for your computer you plan to use this as a secondary hard drive to store all your you and my files once installed what do you need to be done to the hard drive and what do these two task do

Once installed you need to partition and format the drive. Partitioning allocates a certain space to certain logical volumes of your defining. Formatting makes the partition ready for reading and writing

ANSWERED AT 27/07/2019 - 04:40 PM


QUESTION POSTED AT 27/07/2019 - 04:40 PM

Anyone know how to fix this. This problem happens when i try to install Itunes. My laptop is a HP-Pavilion, Windows 8.1 . Thnx for any help

I see that it is installing x32. I suggest you retry and select the x64 download. If that doesn't work, comment back.

ANSWERED AT 26/07/2019 - 12:30 AM


QUESTION POSTED AT 26/07/2019 - 12:30 AM

What does cross-platform compatibility mean? Different browsers can work on multiple operating systems Each browser is designed to work on only one operating system Multiple devices are blocked from using the same browser at one time Several browsers need to be installed on an operating system to access the internet

The answer for your question is A. Different browsers can work on multiple operating systems. Cross - platform programs may run on as many as ll existing platforms. Hope this helps:)

ANSWERED AT 26/07/2019 - 12:21 AM


QUESTION POSTED AT 26/07/2019 - 12:21 AM

Cloud computing will offer applications that are _______. a. More expensive than most software b. Only accessible over the Internet c. Useable only from smart phones d. Installed on your physical computer

Cloud computing will offer applications that are only accessible over the Internet. Correct answer: B  The term "cloud" denotes the delivery of on-demand computing resources over the internet on a pay-for-use basis. Computing resources can be everything from applications to data centers.

ANSWERED AT 25/07/2019 - 03:00 PM


QUESTION POSTED AT 25/07/2019 - 03:00 PM

5. You just bought a new hard drive for youYou plan to use this as a secondary hard drive to store allcomputeryour UMA files. Once installed, what the drive and what do these two tasks do?needs to be done to

Format and mount the drive. 
Formatting erases the drive and sets it up so the system can read and write to it.
Mounting the drive allows the system to have access to the drive and read and write to it. 

If you want to get more specific in Windows you can open registry editor and change the paths of the drive to save in the new location.

ANSWERED AT 25/07/2019 - 11:24 AM


QUESTION POSTED AT 25/07/2019 - 11:24 AM

You just bought a new hard drive for your computer to be used as a secondary hard drive to store all your UMA files. After installing the second hard drive, what two tasks need to be done through disk management in order for the operating system to use the hard drive?

After installing the new hard drive, you should set it up with Windows. Before that, you will need to set up jumpers first. You may need to change the jumper settings of the current hard drive to allow you to have a second hard drive. Once you boot into Windows, you need to format and initialize disk as to your desired settings on the new hard drive.

ANSWERED AT 25/07/2019 - 06:12 AM


QUESTION POSTED AT 25/07/2019 - 06:12 AM