You do not need admin passwords to install non-admin programs. Some programs also need no "installation" at all, and are ready to run in any directory you unzip them into.
Have a look at WinPython for a Python distribution you can unzip anywhere. (On that page, the "dot" versions only contain a minimalist Python, you can then use PIP and virtual environments to install what you need, if you have network access. The non-dot versions contain a lot of useful libs and IDEs, but they are big.)
However! Be mindful of what you intend to do with Python. Developing a one-shot script to improve your productivity, used only by you, is in my opinion just fine. Developing a tool to be used by others raises a lot of issues: who will deploy the tool, who will field the support calls, who will maintain the tool, who will provide language and library expertise and support, what will happen after you leave... You definitely need management buy-in before developing such a tool.
Data processing. I work in exploration geophysics. Much of the data that we get from our instruments comes in the form of time series data, usually as a csv or similar.
There is usually a series of data processing tasks to be done on each dataset each night by the crew chiefs that are collecting this data. It usually costs them about 2-4 hours to do quality assurance on the data - check for bad values, gaps, plot it to ensure it's reasonably sane, compare against base values, etc. Using python, it becomes 'run a script, check the plots'.
We typically develop against a collection of scientific packages called Winpython. https://winpython.github.io/
Basically, if the module is part of winpython, we are allowed to use it. If it isn't, don't. The more common modules we use are: numpy, scipy, pandas, matplotlib, pyqt/pyside, pyqtgraph, pyserial, and h5py.
We use winpython due to the whole 'self contained installation' thing, requiring no admin rights. You can have a half dozen versions, each in their own folder, and switch between them freely. It allows us to use old scripts without having to worry about things that have changed in newer versions, which is important because ...
When we archive our data, we also archive the script that was used to process that data. This is to ensure reproducibility. If you take the same data, and the same script, you should get the same results. A combination of the data, the script, and a winpython version meets those requirements.
We've saved quite a bit of money this way, in terms of hours spent processing data manually. This means our geoscientists can spend more time interpreting the data, and less time massaging it into shape first. It also helps us bid against competitors who use cost-plus billing, who are used to billing hours for all of that data processing work.
If you are on Windows, I highly recommend WinPython. It's a portable solution that once you download and unzip, you can run everything from that folder. That means you can copy that master directory to a network drive, a thumb drive, or any PC without installing anything and it will run. Want Python 2 and 3? Just copy both to wherever you want to work out of.
I always avoid cloud solutions when it involves my company's files. I believe it also has the Spyder IDE and iPython Notebook capability.
Why CPU only? Windows 10 with WinPython works very well with Nvidea GPUs, at least with Tensorflow / Keras. Just download and install Cuda and cuDNN, pip install tensorflow-gpu (or grab a wheel). Your decision should be based on your needs, if you just need Tensorflow / Keras for common things like MLPs or CNNs, Windows is just fine IMO, if you want to experiment with RL or new models (where some packages are not available on Windows yet), I'd try Linux.
Download the package from pypi (big green button in the top right here). Then on the target computer just use pip:
pip install python-chess-0.17.0.tar.gz
You may also find the WinPython project useful. It's a version of python that can live on and run from a thumbdrive.
If you have more questions like this it's better to post them on /r/learnpython. Be sure to include which version of python and what OS you are using.
BTW, pycharm is an IDE, not a virtual environment (I know, confusing name, but still very different things).
If its allowed, you could use winpython. Its a completely stand alone python environment that comes with its own cmd. It can be run from an external drive, doesn't require installation, you can pip install modules, has its own idle, Jupyter notebooks, etc...
You could have a look at winpython. Everything needed to run winpython is contained in one directory which can be copied anywhere including a rmovable hard drive. It comes with a lot of useful packages as well.
Ran into this problem a lot. Py2exe was a disaster for me, had to recompile any time a bug was found or wanted to change a featuer. A way I got around this, different than the other suggestions. I package in a local python dist with the script, then any other scripts I give them I have the .bat file linked to that dist, just zip it together.
The dist I use is winpython with all libraries I need preinstalled. It sounds clunky but honestly it isn't, and it's way better than py2exe because if you need to fix a bug later you can just update the python script. Also you don't need to touch their anaconda installation and be messing with PATH.
Example would be they keep all their scripts in the directory C:\nomowolf_scripts. Then I have a .\winpython directory in there. So then my run.bat file would be:
SET PYTHONPATH=C:\nomowolf_scripts\winpython\Lib\site-packages C:\nomowolf_scripts\winpython\python.exe example_script.py
The dist can be 20mb bare bones or 200mb with a all the libraries (pandas is a big one). But as I said, any future scripts on their PC don't need to be bundled with the dist.
Hope that helps!
There is also a "zero" version of WinPython which gets you a lightweight install. The self-extracting .exe is 25 MB, the installed folder is 83 MB. It still contains tools like Spyder and Jupyter, but it's A LOT smaller than the regular WinPython.
I have been able to deploy a bunch of applications to folks on a Windows network in my company by installing WinPython on a shared drive and simply running the app with fully specified paths to the interpreter and the script. Users do not need to have Python installed on their local machines.
For example, WinPython is installed into C:\WinPython on a server named WBApps (a Windows Server 2012 R2 VM), and the folder is then shared, and access rights given via Active Directory security groups.
On a user's desktop, I create a shortcut with a target of
\WBApps\WinPython\python\python35.exe \WBApps\WinPython\appfolder\AppName.py
WinPython itself is a portable self-contained distribution targeting scientific users and comes with many popular packages preinstalled, such as NumPy, Pandas, IPython/Jupyter, PyQT, and numerous others. It's available in a few different Python versions.
So essentially I'm not distributing the app, I'm installing it centrally and distributing a shortcut to it. I'm not sure how well this translates to your scenario, but all this is just to say that such a thing works, and fairly well so far.
Check out WinPython.
Can you run programs on your work machine? If so you could try winpython, which is a version of python designed to run from a thumbdrive, but you can run it from a folder too without installing anything.
As for the chromebook I think the only option is to install a real operating system if you want to run real python.
As a long time user of PortablePython, I would say that WinPython seems to be the best alternative. It has Spyder IDE and Python 2.7, 3.3, 3.4. I would expect for a 3.5 release in the near future. It also has all the Qt goodies from PortablePython and IPython of course (pandas, other libraries too).
I use Winpython when on windows (for work). Python distributions including most of the relevant scientific packages, contained in a single folder. And a nice little utility to manage it.
WinPython (for Windows) !
I have used that for more than 10 years without any issues ... others have too if you check reddit etc .
It's almost the same as Anaconda as for packages but much easier to maintain with a nice dashboard to control packages ...
The guy (stonebig) that maintains it is a bit anonymous though ...
Thanks stonebig btw : you are doing a great job, much obliged !
>Portable:
Runs out of the box(*) on any Windows 8+ with 2GB Ram (Jupyter Notebook will require a recent browser)The WinPython folder can be moved to any location (**) (local, network, USB drive) with most of the application settings
https://www.python.education/2017/01/lorem-ipsum-dolor-sit-amet.html
Maybe have a look at some open-source projects that run in Windows or MacOS, for example the Quod Libet music player: https://quodlibet.readthedocs.io/en/latest/downloads.html#windows
Depending on your target audience, you could also distribute WinPython (simple unzip) + your source files + a script to start your program.
Using WinPython is a good way to keep your installations separate. Each one stays in its own folder with its own modules etc and they don't interact.
When you install Python the typical way, it can add itself to your path and other environment and registry locations. Then when you install a second one, it can overwrite some of that, but you can still end up with things pointing to one version or the other. WinPython doesn't try to do any of that unless you ask it to.
Use "where pip" to find out which one is being found first. It could be finding the one for 3.8 first, but trying to apply it to 2.7 folders.
Would this help?
>The easiest way to run Python, Spyder with SciPy and friends out of the box on any Windows PC, without installing anything!
In the meantime you could get portable python if you’re on windows machine
If you’re on Linux machine, you could compile python by yourself and then copy it over to your work machine as a portable version
It's impossible to say exactly what will be causing the antivirus to flag your executable. Perhaps try bundling a version of WinPython- it's portable so it can be included in your .zip file with a shortcut or batch file containing the correct command to run your script - something like WinPython\python-3.7.4.amd64\python.exe
<code>main.py</code>
Check out https://winpython.github.io/
I placed this on a USB stick and run my programs on it at work. I work with excel in my programs too. Should work for you too.
WinPython works just fine: https://winpython.github.io/
I appreciate it's not a web version but you can run it without admin privileges in any folder, and even from a USB if you wish.
Try winpython as /u/sbat13 suggested. Windows disabled autorun a long time ago as it was a security problem, so you probably need a human to do something to get your python to run.
Just get miniconda or use the official installer...
If you do either those, it will be very painless, you would already have pip, and yes you could "just start coding". Since you are wanting to use a bespoke non-installation, configuring things is much more painful.
If you are using cygwin you could just install cygwin's own python3
and python3-pip
packages.
Or you could just search for "portable python" which leads to WinPython which claims to do everything you want (set itself up in one directory, not do any normal installation)
You could have a look at WinPython. It's a Python distribution aimed at scientific research and includes a lot of useful packages including some for machine learning. The nice thing about WinPython is that it's self-contained. No OS installation is required and all the files needed live within the installation directory, so you could download it on your own computer, install any additional packages you would need and copy the installation directory to the computers in your class room.
> I could just brute force copy my entire Python directory and overwrite the other one, right ?
Yes, provided both PCs have the same python version, operating system, and bit architecture .
You may also be interested in winpython, which is a version of python designed to live on a USB drive. So you can install what you need on the computer with internet, and then move the drive to the computer without internet.
As mentioned there is Anaconda. For another distribution - the one I use - that comes with extensive data science libraries see: WinPython. WinPython is great and very flexible in how you want it to exist in your operating system installation. It acts just like a regular Python interpreter and you can register it (or unregister) it with your operating system at any time. If you unregister it then it operates in a portable mode - you could even have it on a USB drive and use it on multiple computers from that if you like.
Try this one! This is more matlab-like in behavior, so it might not suit your aesthetic needs, but it's python and it works great. you have to download an installer and run it, but it's only extracting files, so you'll be able to do it without admin privileges. You can then use the winpython interface to install packages manually, or use the winpython command prompt to pip install all the packages you like. All without admin privileges. See if it works!
I spent a lot of time researching and testing out the different packages and so far the best I've found is WinPython: https://winpython.github.io
It's portable. Meaning it's self contained in the folder you unzip. It includes Spyder which is a pretty decent GUI for writing code. IPython Netbook is pretty close to Matlab's comand prompt.