r/learnpython • u/RedEagle21 • Sep 15 '20
IT Denied My Request to Download Python Due to Security Reasons...
I used to have admin rights (data analyst) at my previous employer.
After starting my new role, as a sales analytics manager, I can’t even get python (or even a database application) installed...
Other than personal projects, any other creative ways to continue using python?
Edit: WOW! Thanks for all the feedback. I’ve addressed it to my manager and we’ve agreed to request it again after I propose a proper justification that backs up my needs to download Python. If it gets denied by IT again, my manager might go straight to the CEO but I don’t know if that’ll be necessary. Until then, I’ll have to familiarize myself with VBA again!
Suggestions to consider:
VM
Anaconda
468
u/dukea42 Sep 15 '20
I'd just raise the request with your boss that its a key tool, like excel and access (and likely part of the reason you were hired). Ask him to escalate with IT leadership you need a support path to using the tools required for doing your job. They can install your python and chosen IDE, provide a VM, etc.
Python provides no more or less security than excel vba macros.
104
u/jeet1993 Sep 15 '20
If you’re a data analyst ask you IT dept to provision an Rstudio Server/Jupyter environment. We realized a lot of our analysts were requesting tools like R and python and since both of Jupyter/Rstudio are web utilities, our VDI infra remains unchanged. Apart for an occasional systemwide package install the users never bother us.
21
u/Eightstream Sep 15 '20 edited Sep 15 '20
Python provides no more or less security than excel vba macros
I mean, that’s true - but most IT departments also hate VBA and would block users from downloading that as well if they could.
2
u/dukea42 Sep 15 '20
No argument here :) There appears options to restrict it. But I've never seen it...perhaps its an extra fee...
2
2
u/cd_root Sep 16 '20
You can hide malware in the python libraries, and plenty of other issues. Can’t be afraid of everything tho
3
u/Cheeze_It Sep 15 '20
I'd just raise the request with your boss that its a key tool, like excel and access (and likely part of the reason you were hired). Ask him to escalate with IT leadership you need a support path to using the tools required for doing your job. They can install your python and chosen IDE, provide a VM, etc.
Hah, I see you work in a place with reasonable management...
I too was denied it as well. I had to spin up my own VM to get any semblance of productivity going. A VM no one knew I spun up either.
-42
u/bitcycle Sep 15 '20
Exactly. Also, what employer distributes computers to individual contributors without administrative rights? Seems unnecessarily restrictive.
62
46
30
21
37
15
15
u/skellious Sep 15 '20
Companies cannot afford to trust users with Admin rights. its just far too easy for them to, intentionally or otherwise, completely wreck the IT system.
14
u/MohKohn Sep 15 '20
you forget that people are idiots, especially about security
13
u/toaster-riot Sep 15 '20
But bro these emojis are totally free to install!
6
u/ishouldbeworking3232 Sep 15 '20
How else am I supposed to express myself without the dancing banana cursor?!
0
Sep 15 '20
[deleted]
8
u/ishouldbeworking3232 Sep 15 '20
I was ecstatic when my request for admin rights went unchallenged and was immediately provided (whew for 3rd party IT)... I don't know of any company that is readily willing to provide admin rights, let alone providing them by default.
0
Sep 15 '20
[deleted]
18
u/dukea42 Sep 15 '20
Ah, I have had the luxury of never thinking in terms of federal requirements.
My alternative experience has taught me, that IT attitude is sometimes "you're a business analysis, stay in microsoft; we don't want the headaches". You just got to convince them you can follow at least a pseudo Dev-OPS structure.
My dev code in the dev repository, prod code in the prod repository. Any production running code in the docker swarm only thru proper CRs. Don't complain about laptop performance when i should be using the VM. Etc etc.
3
u/Kitten-sama Sep 15 '20
You just got to convince them you can follow at least a pseudo Dev-OPS structure.
That's great, and when you get an opportunity for a new position you can't move because you're the only one that can support it. Or will have to fix it in your new position when (WHEN) it breaks. Or HR will have to add a new responsibility for your job requirements -- that'll go over great.
I've worked in the "IT control group" for over a decade as well. I tried hard to make sure "reasonable" requests were handled, but also made sure we got support people and phone numbers for breakage, never mind documentation or the wonderful "well it works fine on MY box." Those mostly got nuked or moved to a server in the data center.
If your manager signs off on on running this while knowing you're the only one who knows what's going on, great. We'll try to support it best effort, but guess what -- we're busy too.
5
u/dukea42 Sep 15 '20
Well, I think what was done in my case is really to alleviate those concerns.
Code is in a known git repository with commit comments and other documentation. Applications are in a controlled environment with a history of CRs, all approved by a series of reviewers. I was pushed towards learning python because the CIO wanted to standardize all non-performance scripts to the easier and common language. It does work on my box, so I "shipped my box" with docker.
I've seen the alternative of business processes being excel and access based sitting on random network drives, laptop drives (or dropbox!!!) that IT had no control or insight. Some of it costing buckets of money of last minute work as it blocked a merger.
Being a non-developer, learning these developer's practices has actually left me feeling more secure about leaving my role to another than I have ever done previously.
4
u/Kitten-sama Sep 15 '20
Being a non-developer, learning these developer's practices has actually left me feeling more secure about leaving my role to another than I have ever done previously.
THAT"s the trick that cowboy programmers do -- I'll get it working, it'll be great and work forever, never need maintenance and the box itself will always stay up. It's great for the next quarter, but they end up moving on yet that new software functionality hangs around, and suddenly it's a critical event for IT when it fails.
I've had to pick up the pieces of a crisis "WTF are you KIDDING me?" before. Where's the doc? Where's it run? What's it need? Why do you even think it's broken? What do you MEAN you don't know!??! No fun. And my old, old boss used to produce involved magic Excel macros. (Macros? The whole thing was a damn magical incantation.) They worked great!! Until they weren't and he was on vacation, or later on just gone. "That's not a problem -- just ask Bob, he can fix EVERYTH....oh."
Glad to hear that you've got documentation and have the managers on board. I've done it, WE'VE done it; it's not bad having home-grown programs around doing what you want, but you've got to have docs, overviews, sample data runs, backups, all that. It's a business function and you must TREAT it as such. (Our boss always had the mindset: "what to do when the entire group is out to lunch and is hit by a train" -- and there's no one around to pick up the pieces.)
A funny: one time our manager was going to give us a slight bonus for being on call every 4rd week. Which really was really nice of him, but I popped back "I'll gladly forfeit the bonus if I don't have to be on call." Unsurprisingly enough, everyone else in the group agreed. We all stayed on call and took it, but I think our grumbling surprised him a bit. (Because it WAS an occasional pain.)
Good luck with everything!!
11
Sep 15 '20
Man, I wish I could just stop other people from doing their job because it causes a headache for me. What a privilege!
3
u/ka-splam Sep 16 '20
What an uncharitable reading of that comment; people have to take the wider interests of the business into account including when the original person is no longer around to support their creations.
Nowhere does Kitten-sama say their reasoning is personal headache, and they explicitly say they tried hard to make it work.
1
Sep 16 '20
people have to take the wider interests of the business into account including when the original person is no longer around to support their creations.
Don't people have to take the wider interests of the business into account when developing policies that will stop people from being able to do their jobs, or is IT immune from this "interests of the business" calculation?
2
u/ka-splam Sep 16 '20
That IT have to do so was my point. If IT was immune to it, they would agree to every request without care about the consequences.
1
Sep 16 '20
If IT was immune to it, they would agree to every request without care about the consequences.
Because IT is immune to it, you get the result described upthread - IT simply denies any and all requests they're not trivially able to support. IT is never accountable for creating a work stoppage for anyone else.
2
u/ka-splam Sep 16 '20
IT simply denies any and all requests they're not trivially able to support.
Well duh, if you want IT to approve requests with non-trivial support, IT will need non-trivial additional resources to do that. Anywhere IT is seen as a cost center, that's not going to happen. Anywhere IT is already constrained on resources, that's not going to happen.
IT is never accountable for creating a work stoppage for anyone else.
IT takes a server or network device down midday, IT is accountable for creating a work stoppage - that's why IT people so often have to work longer, and unsociable hours to do their work at a time that doesn't create work stoppage for other people.
Because IT is always on the hook for everyone else's work stoppage when IT breaks, you get the result upthread.
You setup an Amazon AWS account with your expenses credit card, change department, and it stops being paid for and the service stops and someone can't work? IT, fix it.
You go on holiday and nobody knows how you run the end of month reports from your desktop computer? IT, fix it.
You install some random program in your documents folder and a report flags it up as a breach of some contract or regulation, IT how could you let this happen.
You sync your iPad to your work laptop and are now uploading 128Gb of personal videos to iCloud and "the internet is slow" and nobody else can work? IT's problem.
You run a script you found online and it deletes all your documents and you can't work? IT's problem to recover them.
Your ancient Excel macros that worked in 2007 don't work in Excel 2019? IT's problem to fix.
You don't approve enough money to buy a failover/redunant setup, and it breaks and nobody can use it? IT, fix it urgently.
0
Sep 15 '20
[deleted]
2
u/dukea42 Sep 16 '20
Yes, yes you can. Maybe with just the tiniest little alert that macros are unsafe that you see and click away every day. Stupid annoying microsoft. But you didnt realize disgruntled coworkers last day was yesterday and they updated the VBA behind your excel macro on the shared drive you run every day...
128
u/Sigg3net Sep 15 '20
This is a security policy issue. If you need python to do your job, or do it more efficiently, then you will need to go through proper channels and have an exception made.
Do not try to circumvent the policies, that is rarely looked favorably upon.
47
u/wtfismyjob Sep 15 '20
This, help IT help you. Make a better case for it, don’t hack around IT controls.
12
u/Newdles Sep 16 '20
To add to this, the access you had at your last job is entirely irrelevant. You are at a different company, with different policy and different regulatory and audit requirements. IT isn't shitting on you for the sake of making your life hard. But if they aren't passing audits, nobody has a job. Help them help you. Write up why you need it and how it will benefit the company, not just you. Offer alternatives, perhaps they can provide a secured VM, a PCoIP environment, perhaps let them set it up for you...we aren't grim reapers because we want to be, sometimes we have to be the enforcers of policy for the sake of the business.
14
u/fuzzylumpkinsbc Sep 15 '20
I'd say make a good name for yourself there and then tell your manager you need it installed, depending on the situation they can make it happen
11
u/ghosttnappa Sep 15 '20
Escalate this and include a business justification. There's always exceptions to these policies; they likely just don't understand why you need it.
10
u/VU22 Sep 15 '20
Cant believe how many people actually telling you to use your scripts on online IDEs. Do these people actually programming? It is pretty easy way to get fired.
4
u/AnomalyNexus Sep 15 '20
Yup. PIP is a security nightmare - basically pulling unvetted code and executing it on the computer with company info. Most competent security shops aren't keen on that
4
u/ohokaysoundsgood Sep 15 '20
I am someone that works in the healthcare industry as the security person responsible for software approvals. We have a procedure for downloading any software, Python is definitely on that list and there are usually no issues that are brought up aside from users that struggle to download libraries using pip. We have a registry that our organization uses for installing packages from not only pypi but also stuff like npm, docker, etc. and if it hasn’t been downloaded before, it references a database of vulnerabilities. If anything is caught, then the user gets an error, otherwise they’re good to go.
I will tell you that circumventing security measures will decrease the likelihood of any compromise being made. Especially when confidential data is at risk. The best method you can take is escalate with whoever they report to, that’ll definitely have them take a closer look at it ;)
15
u/ka-splam Sep 15 '20
Not to be too much of an off-topic shill, but if you just want to program stuff to help your job, you probably have Windows PowerShell installed because it ships with Windows (look for PowerShell ISE in the start menu).
It's not Python in elegance, and it won't do for the numpy and tensorflow side of things if you're doing heavy numeric analysis, but it's approximately the same language positioning - high level scripting, casual with types, good for automation of websites and APIs and Excel and text processing with regexes, decent with CSV and JSON. That's the original reason I moved from Python to PowerShell - it's less nice, but it's always available.
6
u/NewtonvsLeibniz Sep 15 '20
What's funny is I started heavy into Powershell due to my job, but over time I've had more and more Linux boxes thrown my way, so I have been learning Python for the same reasons you learned Powershell - because it can always be available. Yeah, I know Powershell Core v6 sorta works on Linux, but it's easier for me to just deal in Python if it's something I need to do cross-system. That said, if I have to do heavy Windows sysadmin or anything using WMI or requiring a .NET class, I'll stick with Powershell.
2
Sep 16 '20
With powershell 7 there is no more “powershell core” or “windows powereshell”. It’s just powershell now, fully cross platform.
1
u/NewtonvsLeibniz Sep 16 '20
Cool - I haven't kept up with the most recent releases because most of my use of it is in an enterprise environment, and like most such environments, the infrastructure guys are...conservative on their upgrade schedule. I think most of my stuff is still running on v2. So it goes, I guess. I'll have to look into the newer version though for some of my home tinkering when I'm not trying to do things in Python or (eventually) Elixir.
1
Sep 16 '20
Yeah I don’t doubt it about being slow to upgrade. Server 2019 still only have PS5.1 by default.... what sucks is if you’re using a multiOS environment openSSH is includes in windows build 1809 and above but the full power of it doesn’t really get unlocked because the powershell cmdlets that support a lot of functionality aren’t included until at least PS6. But if you can get a way with it they have a portable version of PS7 you can just run via disk depending on your companies security controls of course. If you wanna check it the official repo is on GitHub.
1
u/NewtonvsLeibniz Sep 16 '20
I'll probably have to check it out local at home for now. I have a lot of leeway for >certain< things on our servers. For whatever reason, .NET version installs tend to be one of the things they have locked down somewhat, which restricts my Powershell version upgrades on our older servers at least. I will check out PS7 though local for sure, if only to tinker. Thanks for the info!
3
u/AceBuddy Sep 15 '20
Wild guess is he wants to use pandas to automate excel tasks. Having to do such a thing without pandas would make me.. a sad panda.
1
u/PediatricTactic Sep 16 '20
Yep. Pandas is the man when you have to clean and combine Excel files. Load up the data frames, manipulate, dump back into Excel. We just did this for a guy who was spending 10 hrs/week manually splicing ten spreadsheets together to build his report. Now it takes 3 minutes.
2
u/wtfismyjob Sep 15 '20
They may not though, or may have the execution of powers he’ll scripts disabled.
2
u/DYGAZ SDET Sep 15 '20
Yep execution policy is likely set to disabled since this system sounds pretty locked down. If they're not allowing python it'd be a pretty massive oversight to have powershell set to unrestricted
2
u/ka-splam Sep 16 '20
Executionpolicy is not a security feature, you can simply
powershell -executionpolicy bypass, or open powershell as a shell and copy-paste the script content from notepad.1
u/ka-splam Sep 15 '20
AFAIK you can't remove it. Blocking it maybe - worth a try, it'll only take them a minute to find out.
1
u/Schedonnardus Oct 07 '20
So, here is something interesting that i just discovered that you may want to check out.
Python 3.x is available on the windows store. My office locks down people's machines, so you usually need admin rights to install anything. But just for kicks, I tried to install Python 3.8 via the windows store, and it worked.
Now, i realize that their are different tiers in windows enterprise settings for what a person can and cannot do, so I don't know if this is a loophole, or if there is a setting that my office has enabled to trust content from the windows store, but you definitely might want to try this! You would be stuck using IDLE, instead of a fancy IDE, but it would be better than nothing!
2
6
u/Zeroflops Sep 15 '20
As many have mentioned talk to your manager. Yes the IT have some security concerns but in reality it’s probably more they don’t want everyone installing Python and then having to support it.
So blanket refusal with security as a reason is an easy way for them to keep things generic and easy for them to maintain.
Get alignment that you can install as a single user. They they don’t have to worry about security and any programs you write will only have the same permissions as you have.
6
u/anpago Sep 15 '20
Create a demonstration on a private laptop with fake data but similar enough for your manager and anyone else to see what's going on.
If easier compile a very short video so it can be forwarded on, shown in meetings your not at.
Explain in bullet points, what's needed and what can be achieved. Give them some basic idea of how much time it takes using your system compared to the old way.
Basically sell your need so you can bulid a business case with your manager and possibly their manager. Demonstrate how it helps the company.
Your employers IT department, is doing their jobs as gatekeepers to the companies network.
Seriously if your working for any size company who simply let's someone download python and start processing company data with no need for permission or a business case. Then leave that company as it's likely to have a costly I.T issue and all your jobs could be in peril.
3
u/plaintxt Sep 15 '20
I used to keep my portable copy of python & libs in my download folder so I could side-step admin access.
3
5
u/edgecate Sep 15 '20
I hope you get it installed!
There was a large firm I worked with previously that supposedly took 8 months for a security assessment of whether Python could be installed on work laptops.
They were a bunch of old guys who didn't know what Python and libraries were so they just said "no" after their "assessment" lol.
8
u/bookit_sports Sep 15 '20
look for a new job.
interview question - "why did you leave your last job?"
you - "they wouldn't allow python to be installed so i could do data analysis"
interviewer - "you are hired"
2
Sep 15 '20
I’m confused. We’re you using Python in your previous role for personal projects and now lack access? If it’s needed in your sales role for analytics, put a request in. I work in a heavily-locked down environment and have python 3.8 install and VS Code, mostly off the back of IT colleagues working with InfoSec presumably.
2
Sep 15 '20
Unless you're prepared for the consequences that come with side stepping the IT decision, you should just abide by the decision. Even then, I wouldn't do it. If it were me, I'd find a few processes and demonstrate how they and the company would benefit from Python. What are your coworkers using?
2
u/Laced-With-Happy Sep 15 '20
Had the same issue. It’s a simple matter of letting your boss know. He should know the right work around with IT or at least talk to someone who can give you access.
2
Sep 15 '20
Talk to your boss. I'm guessing you requested non-standard software and didn't provide a good reason why. Tell your boss that you want to download python to use as a tool to do your job better. It seems like you clicked a few links and gave up without actually talking to anyone.
2
4
6
Sep 15 '20
If you’re using Python in a Jupyter notebooks way, then checkout google’s colabs. You can write a doc (similar to jupyter notebooks) and run your code on one of their instances in the cloud or locally. Plus it makes it really easy to store all of your notebooks in one place. https://colab.research.google.com/
16
u/wtfismyjob Sep 15 '20
If IT is pulling the “security” card for installing Python, they sure as hell won’t be happy when they learn OP uploaded company data assets to GCP without approval and due diligence. Don’t hack a solution around IT, just make a better case.
1
u/Oldzoomie Sep 15 '20
Maybe you'll be able to get jupyter or anaconda? Yeah, in controlled environments it's quite likely you won't have authority to install stuff on your own.
1
1
u/jzia93 Sep 15 '20
You've been given good advice here - you can run a colab notebook if you want to script things in drive, but don't be looking to install python if you've been explicitly told not to.
1
1
u/Conrad_noble Noble1988 Sep 15 '20
I'm in a similar situation. I work for the NHS. So obviously security is top priority.
I managed to get pycharm onto a desktop but it won't install any modules from pypi.
So if anyone out there who has experience of a similar situation can chime in please let me know.
3
Sep 15 '20
NHS
What do the logs say and does anyone else at your organization know that you're doing this?
2
u/Conrad_noble Noble1988 Sep 15 '20
IT allowed me to install pycharm but they're really not interested in allowing pycharm to bypass the proxy to download from pypi.
I believe they'd have to manually allow it each time I wanted to download/update a module
I've tried through command prompt also so it's not a pycharm issue it's a proxy/policy one.
3
u/Rainas Sep 15 '20 edited Sep 15 '20
Had a similar issue when working in a bank.
I done a bit of digging into internal docs and found that they had their own internal repository of approved packages and you had to install from there. There were instructions on how to set up an .ini file to redirect PIP to install from that location instead.
Might be worth asking around to see if the NHS has something similar.
2
Sep 15 '20
You could ask them to set it once for you. Usually if I need to go through a proxy I'll just set an environment variable. However, as another poster has stated, your organization may have an internal repo that has the packages you want.
1
1
u/Dexteroid Sep 15 '20
in my company they have certified versions of python which you can download from Software Center ( in windows). You can't download from web.
1
u/Matthias1590 Sep 15 '20
This post makes me wonder, whats the worst thing you could do to a pc with python?
1
u/ka-splam Sep 16 '20
Anything your normal user account has permission to do, but much faster. In a mildly amusing twist that usually means the computer will protect itself from harm like uninstalling a driver or removing the OS, but you have access to trash/encrypt/scramble all your documents and all company shared documents you can write to, and send masses of junk email, and hammer the network connections and be used as a spam or ddos host by a third party.
1
1
u/DeathWrangler Sep 15 '20
I just wanted to pop in and mention that there are several portable database management programs that will function just fine.
Unless your company I.T. bans flash drives.
1
1
u/SluggishWorm Sep 15 '20
Im not even in a job where any sort of programming is in my role, and my it department didn't bat an eyelid when I asked to install python and a development environment. Id escalate up the chain. They can still have their system secure and have python.
1
u/rockysnow7 Sep 15 '20
Idk if it is powerful enough or secure enough, but repl.it is a free in-browser Python (and many other languages) IDE which I've used before.
1
1
1
1
u/werpong Sep 15 '20
You can use the "Pyroid 3" app on your phone? Thats what I use at work, for the same reason.
1
u/MiniKarma Sep 15 '20
Check if there’s an IDE in your “software catalog”. Or in the Microsoft Store. Those aren’t blocked for me and that’s how I got it installed without admin rights.
1
1
u/CyberMattSecure Sep 15 '20
a possible solution: Visual studio code + remote containers extension + docker container python dev stack (can be launched from VSCODE)
Python is a legitimate security concern as it is an extremely versatile tool. However it is still a tool with a lot of functional use in data analytics
1
u/ohallright7 Sep 15 '20
You are a data analyst, here's a couple big ones I've enjoyed python for:
Formatting files and datasets fast & easy w/ import and export (pandas)
automating tasks on my PC, navigating websites moving files etc (pyautogui)
connecting to databases (pyodbc) w/ pandas above is great
unzip files faster than unzipping tool (pyzipfile) coop with above to load the data/file somewhere
I've just gotten python for my work machine a little over a month ago, is difficult to explain how versatile of a tool it is until you see how everything can be a python script. Also highly recommend jupyter lab as your ide.
1
u/petitMoussaillon Sep 15 '20
You could use python on rep.lit maybe?! It's a way to Write python code on your browser without having to instal python on your computer
1
u/carnage9191 Sep 15 '20
You should request a dev server to do development. This will solve security’s concerns since it won’t be a rouge application no one is patching on desktops
1
u/Schedonnardus Sep 16 '20
Ask for an ARCGIS license, python is part of the install package, it even comes with its own very simple IDE.
ArcMap uses python 2.7 ArcGIS Pro uses v 3.something
It's expensive, but they might bite.
1
1
u/Labrecquev Sep 16 '20
Similar situation at my new job with supplied laptop. I haven't asked then yet, but I wonder if they install Anaconda, will I need admin rights to pip install packages? What would be a solid argument to support the claim that it won't be more dangerous for the system than say Excel with macros?
1
u/port53 relative noob Sep 16 '20
Perhaps you were denied installing it on your own personal system because there are systems where it is installed and where you can run it from, and you just need to request an account there.
That's how it works at my $DAYJOB, you can't install stuff on your laptop, but there are servers, VM, virtual desktops (VDI), etc. that you can get access to, some of which even give you root.
But not allowing end users to have admin rights on their desktop/laptops is just good security policy in 2020.
1
u/Squevis Sep 16 '20
There is a good reason for this. The file system stuff you can do with python alone is enough to have any IT guy suffering from apoplexy. Now imagine if someone nefarious got into your account and had access to python. It curdles the blood.
I write python programs all the time to model physical systems for work. They have a machine set aside for me that I have to remote into that has no access to the rest of the network file shares or the internet. I can cut and paste from my desktop to the remote desktop, run my scripts, and move everything back over to post process.
If I need to update anything, they turn the internet on, I update, the seal it back up.
It is a pain but it is not really that rare for development machines to be kept off the main network.
1
u/ka-splam Sep 16 '20
The file system stuff you can do with python alone is enough to have any IT guy suffering from apoplexy. Now imagine if someone nefarious got into your account and had access to python. It curdles the blood.
It shouldn't; there's nothing you can't already do with Excel+VBA, VBScript, JScript, PowerShell, or C# (the csc.exe command line compiler ships with .Net).
1
u/r00t_4orce Sep 16 '20
Anaconda is your friend for this:
https://docs.anaconda.com/anaconda/install/windows/
It doesn't need admin to install it just runs from your local non-admin profile. Added bonuses are; many popular packages are already bundled with it, it stays updated/current, and adds the handy conda package manager too.
1
u/longgamma Sep 16 '20
MAny large companies have a FOSS exception if there isnt any internal software that can replicate the functionality. You need to raise it with your manager and make sure he escaltes this. In this day and age, its unlikely that someone wont allow Python to be installed for work.
1
1
u/dogs_like_me Sep 16 '20
Ask them for access to a linux VM. Python will almost certainly already be installed.
1
u/C2-H5-OH Sep 16 '20
If you have access to the Store app on Win10, you can install python from there
1
u/motoevgen Sep 16 '20
Are you supposed to use python in your work ? Or it is just a tool you like ? Can they make you an isolated environment to run python ? Can your company afford a cloud computing? Are you running Linux, Windows or OSX ? Is there a possibility to run python code on a company server and just an IDE client on your machine ? Was it a straight “No” or with reasoning ?
1
u/RealityEditor42 Sep 16 '20
If you are running on windows, and hypervisor is installed then you might be able to run python though a VM (I usually use Ubuntu on top of windows). There is however a risk that you will still not be able to download the packages you need, if there is a strict network policy on your computer, combined with a dns blacklist on the network.
1
u/amrock__ Sep 16 '20
I think Google colab there might be alternatives. You can use python portable without installing it
1
u/mm11wils Sep 16 '20
Ah, I remember my first job, where it took 2 months for python to be approved.
1
Sep 16 '20
You could ssh to a server of yours and use Python on that machine. Provided you have SSH installed on your work machine.
1
u/SGS-Tech-World Sep 16 '20 edited Sep 16 '20
You can install the Mu editor, it gives you a descent python editor with python built in.
1
u/Faith-in-Strangers Sep 16 '20
Python is pre-installed on Mac and Linux.
Tell them that if it is, how is it going to be a security problem
1
u/piggychuu Sep 16 '20
Sounds like you got bombarded with responses, but I guess Google colab or something like that could be an immediate remedy till then.
1
1
u/RCrumbDeviant Sep 16 '20
So, there’s a prevailing assumption in all the replies I’ve read that you’re asking “how can I get around IT to do this thing”.
I’m going to answer the question I thought you were asking which was “how can I keep my python skills sharp when I’m not actively using them at work, when I’m used to working with large datasets that I won’t have at home”.
Honestly, my biggest suggestion would be to try to teach/tutor or offer to review projects students are working on. If you’re skilled enough to be doing this as a living, you’re skilled enough in reviewing your own work to be able to look at how someone else is doing it. As a student, I’d often work with either out of date or completely fabricated data sets, and was absolutely overwhelmed by them a few times. I got over it, but having someone to bounce ideas and my attempts off of would have been awesome.
Another thing you could do is try to “alt-solve” something. I do this for excel/VBA on reddit, where I’ll look at just the question being asked, solve for it, then come back and review the answers other people have. If I’m in the majority, I’ll look for another valid solution and try to figure out why that makes sense vs my own solution. Sometimes it’s because I come at it from a “this is math, so use math” instead of “I know all the built in functions”, other times it’s just what I’m comfortable vs uncomfortable with.
Best of luck!
1
1
Sep 16 '20
There’s this thing called WinPy, which is basically a completely portable distribution you can put on a USB stick
1
u/xelf Elf Sep 15 '20 edited Sep 16 '20
Ask for Visual Studio instead. =) Unlikely a company policy against that.
Other than personal projects, any other creative ways to continue using python?
If your company allows it just use a computer of your own. Have a decent smartphone? Run python on that and just plug in a kb/monitor to it. A usb-c hub will run you about $20-$30.
18
u/wtfismyjob Sep 15 '20
Good luck not getting fired for loading company data assets to an unapproved personal device.
1
u/stuaxo Sep 15 '20
There's stuff like pythonanywhere, though parts may be blocked. Similarly there are various sites where you can use jupyter notebooks.
Obviously YMMV, uploading any data from the company may well be a nono.
-1
u/dcpye Sep 15 '20
Check Portable Python or Python Anywhere.
I don't think Portable Python is supported anymore (but you can get it anyway in other places i think) but it has the 3.7.7 version and it works fine. You can pip install any module through a console.
My only issue is that i've converted a .py to .exe and the security/anti-virus automatically removes the .exe file.
0
u/y0urnamehere Sep 15 '20
Sign up for repl.it full python ide online. I get my students to use this if they don't have python. Im not 100% on whether you can add extra libraries though.
-1
u/b_ootay_ful Sep 15 '20
Can you move it online?
Create a Flask that can take in a file and process the information for you. pythonanywhere.com
Or if it's simple scripts, maybe look at repl.it
12
u/NewtonvsLeibniz Sep 15 '20
I'd say be careful with using anything hosted outside of the company firewall to process potentially confidential company data. If you can get a web service set up by IT using your code, great, but coming from a health care IT world, I would want written permission before sending anything with even the potential for confidentiality breach to an external web service for processing.
1
u/amasad Sep 16 '20
Just fyi: repl.it is more featureful than pythonanywhere, you can totally host flask apps too! https://repl.it/@amasad/flask-app#main.py
1
u/b_ootay_ful Sep 16 '20
You just blew my mind!
I'm probably going to move some of my smaller projects there
-2
u/steelersxl786 Sep 15 '20
Another work around for not having Admin rights is downloading PortableApps. This allows you to run programs from network storage, flash drive, etc on multiple PCs. From there you can download python IDEs, text editors, etc. You can also find other portable app programs and load it into the PortableApps launcher.
-7
Sep 15 '20
USB Drive or bypass the proxy with a vpn.
17
u/OnlySeesLastSentence Sep 15 '20
This is how people get fired.
1
Sep 16 '20
Why even ask, it's just a programing language.
1
u/OnlySeesLastSentence Sep 16 '20
Because if you allow python to run, then you can write a code to make anything else run, thereby defeating the purpose of not letting programs run.
11
105
u/shiftybyte Sep 15 '20
Python can be used without admin rights.
https://sourceforge.net/projects/portable-python/