Python Forum

Full Version: How to make Python 3.7.6 accessible to users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone

In our server, Python 3.7.6 has been installed, along with Anaconda3 and all the pip packages, including Pandas.

However, they are not accessible to the end users and/or installer id, appuser. Users are still seeing the operating system python 2.7.

The problem is making these directories accessible to the installer id which is appuser. We tried the following commands:

sudo ln -s /root/acaconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh
echo "./root/acaconda3/etc/profile.d/conda.sh" >> /home/appuser/.bashrc
echo "conda activate base" >> /home/appuser/.bashrc
source /home/appuser/.bashrc


However, when that was attempted, we came across the following situation:[Image: rtf1qKx]

What do you think, how can we solve this issue, I will appreciate if you can advise other commands if there is any.

Thanks
Doguhan
Are you calling python3 or python? To get python3 you need to type python3 at the console
During installation, there are 2 checkboxes at bottom of the initial installation page
'Install launcher for all users (recommended)'
and
'Add Python 3... to PATH'

You can see what this installation page looks like here: https://python-forum.io/Thread-Python-3-...er-Windows
It looks the same for Linux install.

These should almost always be checked

If the first checkbox is checked, python version will be available to all users.

If the second is checked, the proper environment variables will be set so that typing 'python' will execute the latest version installed.
Because of your requirements, I suggest reinstall checking both of these boxes.
for linux install, we didnt see those options unfortunately. I wonder how we can solve this issue by referencing in linux actually.
Look at Multi-user Anaconda installation on Linux

pyenv Simple Python Version Management
Also a option is to look into if use pyenv,has a option to install Anaconda3 or Miniconda3.
Then there are no administrative permissions required,since everything happens in your user context and $HOME directory(~).
This way an option for multi-user environments like a shared system at work,
or one of those you get when renting hosting for your homepage,in which you do not have root permissions.