不使用PIP或CONDA安装Python软件包
我正在尝试在远程桌面上运行.py脚本。我正在尝试导入我需要运行脚本的不同模块,但是由于没有PIP或Anaconda,我无法进行。我尝试通过运行get-pip.py
文件来安装PIP,但是我会收到以下错误:
找不到满足需求PIP
i' 的版本ve还尝试使用SusePIP方法运行它,但是我遇到的错误是:
无法导入Setuptools
唯一的解决方法是使用pip
,我是我安装该模块,我没有。
然后,我尝试使用conda,但由于正在使用的远程服务器的管理权,我无法安装Anaconda。
我还尝试安装jupyter笔记本电脑,但由于管理权权利,但无法进行。
我在本地计算机上毫无问题,但在此远程台式机中没有做任何问题。我也无法获得进一步的管理权。
是否可以在不使用pip
或conda
的情况下获得Python模块的另一个选项?
I'm trying to run a .py script in a remote desktop. I'm trying to import the different modules I need to run the script but I'm unable to as I don't have pip or Anaconda. I've tried installing pip by running the get-pip.py
file but I'm getting the following error:
Could not find a version that satisfies the requirement pip
I've also tried running it using the ensurepip method but the error I then get is:
unable to import setuptools
The only workaround for this is to install that module using pip
, which I do not have.
I then tried using Conda but I'm unable to install Anaconda due to admin rights to the remote server I'm using.
I also tried installing Jupyter notebook but again, wasn't able to due to admin rights.
I've been able to do this no problem in my local machine but not in this remote desktop. I'm also unable to get further admin rights.
Is there another option to get Python modules without using pip
or conda
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
:例如:
如果您在Python2脚本中使用烧瓶,请尝试使用Python2烧结RPM模块安装在OS中。
同样,适用于Python3。
作为解决方法,您还可以创建自己的自定义模块,无论您将其导入到应用程序中。
for example:
If you are using flask in python2 script then try python2 flask rpm module to install in your OS.
Similarly, for python3.
As a workaround, you can also create your own custom module whichever you are importing to your application.