So apparently the command is
./configure --prefix=/Users/(username)/path/to/wherever --enable-shared
I just made a new folder and stuck Python in there. After that I just had to change the PATH variable and it worked fine from the terminal as well.
Answer from Ryan A on Stack ExchangeSo apparently the command is
./configure --prefix=/Users/(username)/path/to/wherever --enable-shared
I just made a new folder and stuck Python in there. After that I just had to change the PATH variable and it worked fine from the terminal as well.
This worked for me, i am able to bring up a python shell , create a virtualenv and pip install
cd ~/Downloads
curl -L -O https://www.python.org/ftp/python/3.10.4/python-3.10.4-macos11.pkg
mkdir -p /Users/volden/opt/Python.framework
cd /Users/volden/opt/Python.framework
xar -xf ~/Downloads/python-3.10.4-macos11.pkg
for i in `find . | grep Payload`; do mv
i.gz; gunzip $i.gz; done
for i in `find . | grep Payload`; do cpio -iv < $i ; done
export DYLD_FRAMEWORK_PATH=/Users/volden/opt:$DYLD_FRAMEWORK_PATH
export DYLD_LIBRARY_PATH=/Users/volden/opt/Python.framework/Versions/3.10/lib:$DYLD_LIBRARY_PATH
Without the second export there will be SSL errors , “import ssl” will spew errors unable to load libssl dylib
Others have mentioned using virtualenv or pyvenv. That has its advantages, but if you want a quick and dirty solution, you can use the --user option to easy_install to install packages without admin rights. It installs it somewhere under your home directory.
http://pythonhosted.org/distribute/easy_install.html#use-the-user-option
Just install virtualenv once, then work on local environments. It's a good practice too.
Can’t install python on my work computer due to IT lockdown and requiring admin credentials. Any suggestions for a newbie looking to learn?
Repl.it is a cloud based editor
More on reddit.comHow to learn Python without admin rights
python 3.x - How to install python3 without admin rights on Windows? - Stack Overflow
numpy - How to install python packages without root privileges? - Stack Overflow
Im sorry I might be stupid and this might be impossible but how do I download it on my computer when I don’t have admin privileges? Or is there some other python thing that I can download to get around admin privileges
As the title says, I can’t install python on my computer. Are there other ways to get access to python? Perhaps a web based version or portal? Thank you.
Hi everyone, I want to learn Python during some free time at work and while commuting, but I can only use my work laptop. I don’t have admin rights and I can’t get IT to install Python for me. I tried the without admin versions and some other suggestions from older threads, but I couldn’t get pip or packages working properly I’m looking for a reliable way to get hands-on Python practice (running scripts, installing basic packages like requests/pandas, etc.) within my user account without coming into crosshairs of our IT team. Has anyone successfully set up a fully working Python environment (with pip) on a corporate locked-down Windows PC. Any working step-by-step solutions would be greatly appreciated!
You could try python virtual environments, which is probably good practice even if you have admin rights. Here is a good guide to python virtual environments: http://docs.python-guide.org/en/latest/dev/virtualenvs/
You can try downloading the .zip from the python website https://www.python.org/downloads/release/python-371/ under files.
Although you won't find IDLE as a part of this python by default. You can use any other IDE or just cmd.
You don't need root privileges to install packages in your home directory. You can do that with a command such as
pip install --user numpy
or from source
python setup.py install --user
See https://stackoverflow.com/a/7143496/284795
The first alternative is much more convenient, so if the server doesn't have pip or easy_install, you should politely ask the admins to add it, explaining the benefit to them (they won't be bothered anymore by requests for individual packages).
You could create a virtual environment through the virtualenv package.
This creates a folder (say venv) with a new copy of the Python executable and a new site-packages directory, into which you can "install" any number of packages without needing any kind of administrative access at all. Thus, activating the environment through source venv/bin/activate will give Python an environment that's equivalent to having those packages installed.
I know this works for SGE clusters, although how the virtual environment is activated might depend on your cluster's configuration.
You can try installing virtualenv on your cluster within your own site-packages directory using the following steps:
Download virtualenv from here, put it on your cluster
Install it using
setup.pyto a specific, local directory to serve as your own site-packages:python setup.py build python setup.py install --install-base /path/to/local-site-packagesAdd that directory to your PYTHONPATH:
export PYTHONPATH="/path/to/local-site-packages:${PYTHONPATH}"Create a virtualenv:
virtualenv venv