need assisstance to set python2.7 as default & Django to install [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am not able to install Django.I am using CentOS 5,not able to set python2.7 environment variable.Priviously in my system python2.4.3 is available,but after installing python 2.7 in the terminal i checked the version avail in system using "python -V"cmd it executed as python 2.4.3.But if i checked using "python2.7 -V"cmd it is showing python2.7.Please help me with this.....
1.I need to set python2.7 as default version.
2.Help me with the installation of Django.

Your CentOS relies on python 2.4 so that's not going to work. You should probably create a new system user and install pyton 2.7 in its home directory (or use your root user and install python in /opt for global usage), you can find plenty of tutorials on Google.
After succesfully doing so, you can set an alias in your user's bash profile to define which python version to use. It's also common practice to create a virtualenv for each project and/or user.

Related

error in run python3.9 from cmd where python 3.7 installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I want to make python 3.9 to be the main python to install opencv it keeps getting erorrs
python 3.9 existing in 2 locations
everything in anaconda is using I think python 3.9
but I want to use 3.9 in cmd and powershell because 3.7 only work
this error appears in pip install any package on cmd or powershell
You need to either reinstall Anaconda or remove the package that is causing the issue from your python install location.
This user also had the same issue and they fixed it by reinstalling Anaconda, someone suggested that they can try manually deleting the google_auth package that was causing the issue.
To find the location of the site package run this command.
python -m site --user-site
You should get an output like this
C:\Users\%USERNAME%\AppData\Roaming\Python\Python39\site-packages
You can go there and delete the files that were causing the issue.
If you cannot find the package there (which would be very odd based on your screenshots)
you can try
python -c "import site; print(site.getsitepackages())"
And try removing the package from there.
If none of those work, you sadly will most probably have to reinstall anaconda or python.

How to upgrade jre selectively on linux mint [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have newly started using linux mint (linux at all).
I have installed two jre versions on it. One openjdk and another oracle jdk. Here is how my update-alternatives --config java output says -
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
* 2 /usr/lib/jvm/jre1.7.0_13/bin/java 2 manual mode
I want to upgrade oracle jre listed at #2 above. Is there a way to selectively upgrade that?
Here is what I tried:
1. I tried finding this jre in package manager but I couldn't find it, may be because I manually installed it.
2. Did 'apt-get update' and tried to find oracle java in 'apt-cache search' so that I can upgrade from there, but again couldn't find oracle java in search.
The final approach that I am thinking of trying is to download latest version and install it along with 1.7.0_13 and making that choice. However, I want a way to upgrade existing.
Any inputs?
Ubuntu and other Linux distributions usually provide a custom linux version (such as openJDK). To install the official versions, I recommend you to use this site: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/, from where I took the steps to install it in my machine.
There is also this option, that talks specifically about Linux Mint and is simmilar : http://www.vivaolinux.com.br/dica/Instalando-Java-no-Linux-Mint-Ubuntu-e-derivados

Install jdk in linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I installed java from a binary package (bin format). Now I want to know how to set environment variables in Linux (Ubuntu).
Nothing happend when I type set path=<location of bin folder>.
Then how to run a .jar app?
for configuration
export JAVA_HOME="jdk/installation/dir"
export PATH=$PATH:$JAVA_HOME"/bin"
For running something.jar
java -jar something.jar
Or you could just install the OpenJDK from the Ubuntu Software Center. Much less of a hassle.
PS: Do you actually want the JDK, or do you just want to run a .jar? (cause that's how I interpret the second part of your question).
Because you will very likely already have a JVM if you're using Ubuntu, you could just type
java -jar /path/to/thejar.jar
Firstly use javac commend in terminal to see whether you have installed sdk properly. If answer is no, define paths. And it would be better if you had explained something about IDE, which IDE you will use.. MAy it be easy

Is Eclipse available for any Linux distro [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
All I see when I go to the Eclipse download page is 32bit and 64bit so just for windows. I'm new to Linux and would like to move gradually to it. Will I be able to use Eclipse on it?
Yes.
http://www.eclipse.org/downloads/?osType=linux
You might be accessing from a Windows machine. For Linux download from here
you can install it from wither the package manager on your distro or from the command line using sudo apt-get install eclipse or sudo yum install eclipse, depending on whether your distro uses apt or yum.
There's a dropdown where you can select alternate platforms - http://www.eclipse.org/downloads/?osType=linux when you select Linux from the list.

installing Eclipse on ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
hey everyone i am trying to install Eclipse helios for C/C++ developers on a ubntu OS
i am new with all this ubntu stuff - even though i downloaded a version of helios from the Eclipse site i have no idea how to install the program
i can't find the eclipse.exe file that it has when is installed it in windows!
thanks allot.
Brad
Install it using the Ubuntu Software Centre and not through the Eclipse website. Or alternatively, open a terminal by pressing alt + F2 and type sudo apt-get install eclipse it might ask for your administrator password and tell you the file size, all you have to do is agree by typing 'y' then it will be installed automatically.
In case you want to use the file that you have downloaded, telling us what kind of file it is would help us give you the necessary instructions. For example it might be a tarball or a gzip archive.
There are no exe's on Linux! Simply unzip the version you downloaded (32 or 64 bit), put the new eclipse folder to some location (e.g. /opt), and run /opt/eclipse/eclipse - voilá.
Make sure you have the correct JDK installed (Sun JDK or OpenJDK) in the correct flavour (32/64 bit - depending on the version of eclipse you downloaded).

Resources