GVKun编程网logo

在windows上安装msi文件到virtualenv pythons(win10安装msi文件2503)

18

针对在windows上安装msi文件到virtualenvpythons和win10安装msi文件2503这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展Ansible–尝试python3.

针对在windows上安装msi文件到virtualenv pythonswin10安装msi文件2503这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展Ansible – 尝试python3.5时找不到Virtualenv可执行文件、HPC install software on python virtual environment without root right and use X graph (windows) t...、python – Windows上的VirtualEnv,pip无法安装带有C扩展名的软件包、python – 在windows的virtualenv中安装lxml等相关知识,希望可以帮助到你。

本文目录一览:

在windows上安装msi文件到virtualenv pythons(win10安装msi文件2503)

在windows上安装msi文件到virtualenv pythons(win10安装msi文件2503)

所以创build了一个.reg文件,它将改变系统相信python的安装位置,这样我就可以运行msi并将其安装到预期的virtualenv中。 这工作但是很麻烦。

但每次我运行一个python .msi安装程序,我看到这个选项从一个只有一个条目的相当大的列表框中“select一个python”。 真正甜蜜的是能够从列表中select我的虚拟环境,而不是必须加载一个.reg文件来将其设置为所需的VirtualENV,然后再指向它在该系统python所有的virtualenvs来从。

我可以创build哪些registry项,以便在msi安装期间看到的那些“selectpython”列表中有多个2.7 Pythons?

Spring Security java.lang.IllegalArgumentException:input中的非hex字符

在windows中指定schtasks命令中的“启动”目录

我有一个C#Windows窗体应用程序。 我可以在networking上部署它,以便用户可以通过networking访问?

帮助debuggingInterop问题的最佳工具

Windows控制台API

静态指针dynamic分配数组

上传离子(cordova)Windows Phone应用程序到Windows商店

在Windows上使用C ++ MysqL驱动程序

如何通过Ruby在Windows上创build符号链接?

Erlang与windows上的maven编译

您不需要操作注册表,因为您可以使用二进制安装程序(.exe)将Python软件包安装到virtualenv中。 请参阅我是否可以将Python Windows软件包安装到virtualenvs中? 了解详情。

Ansible – 尝试python3.5时找不到Virtualenv可执行文件

Ansible – 尝试python3.5时找不到Virtualenv可执行文件

有没有办法修复pip模块无法找到合适的python版本?关键问题似乎是virtualenv_python

- name: Create venv and install requirements
  pip:
    requirements: /home/admin/dev/python/filepro/requirements.txt
    virtualenv: /home/admin/venvs/filepro
    virtualenv_python: python3.5
  tags:
    - venv

错误:

Error message:
Failed! => {"changed": false, "Failed": true, "msg": "Failed to find required executable virtualenv"}

/usr/bin/python3.5是python 3.5的地方,我正在使用Ansible 2.2.1.0

解决方法:

首先,您需要确保为要使用的Python版本安装virtualenv.您可以在运行pip模块之前执行此操作:

- name: Install virtualenv via pip
  pip:
    name: virtualenv
    executable: pip3

如果您不希望(或不能)以root身份安装virualenv,Ansible将无法获取virtualenv可执行文件.您可以手动将其添加到PATH环境变量:

- name: Create venv and install requirements
  pip:
    requirements: /home/admin/dev/python/filepro/requirements.txt
    virtualenv: /home/admin/venvs/filepro
    virtualenv_python: python3.5
  tags:
    - venv
  environment:
    PATH: "{{ ansible_env.PATH }}:{{ ansible_user_dir }}/.local/bin"

或者,您可以以root用户身份安装vitualenv:

- name: Install virtualenv via pip
  pip:
    name: virtualenv
    executable: pip3
  become: yes
  become_user: root

总结

以上是小编为你收集整理的Ansible – 尝试python3.5时找不到Virtualenv可执行文件全部内容。

如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。

原文地址:https://codeday.me/bug/20190828/1753550.html

HPC install software on python virtual environment without root right and use X graph (windows) t...

HPC install software on python virtual environment without root right and use X graph (windows) t...

1. Using Python Virtual Environment to install new softwares without root right.
 
Please try to use Python  virtualenv to setup and manage Python environments
 
https://media.readthedocs.org/pdf/virtualenv/latest/virtualenv.pdf
 
For example to use Python 3.6.3 with PyTorch 0.2.0_3, I’m working in the folder /home/wang/pyenv
 
(1) To create a new folder
 
mkdir py3.6.3
 
(2)
module load pytorch/python3.6/0.2.0_3
(3) 
virtualenv --system-site-packages py3.6.3
 
(4)
source py3.6.3/bin/activate
(5)
pip install opencv-python Pillow pywavelets scikit-learn
 
Now every time after run
 
module load pytorch/python3.6/0.2.0_3
source /home/wang/pyenv/py3.6.3/bin/activate
 
you’ll use this environment. 
 
[wang@c17-04 ~]$ module load pytorch/python3.6/0.2.0_3
[wang@c17-04 ~]$ source /home/wang/pyenv/py3.6.3/bin/activate
(py3.6.3) [wang@c17-04 ~]$ python -c "import torch; print(torch.__version__); print(torch.__file__)"
0.2.0_3
/share/apps/pytorch/0.2.0_3/python3.6/lib/python3.6/site-packages/torch/__init__.py
(py3.6.3) [wang@c17-04 ~]$ python -c "import cv2; print(cv2.__version__); print(cv2.__file__)"
3.3.0
/home/wang/pyenv/py3.6.3/lib/python3.6/site-packages/cv2/cv2.cpython-36m-x86_64-linux-gnu.so
(py3.6.3) [wang@c17-04 ~]$
 
 
 
2. Use X graph (windows) to display
 
Inside NYU campus, please directly login to prince.hpc.nyu.edu without through HPC gateways with command
 
ssh -Y prince.hpc.nyu.edu
 
When you are working off campus, please try to use HPC gateways is gw.hpc.nyu.edu, /home on new gateway is mounted as read only, users can not write any data there.  HPC gateways are mainly for setup ssh tunneling, after sshtunneling session is running, users can directly login to prince cluster from their local computers. 
 
For Mac, please follow the instructions on HPC wiki to setup ssh tunneling
 
https://wikis.nyu.edu/pages/viewpage.action?pageId=85395532
 
(1) Open an iTerm, run command
 
ssh hpcgwtunnel
 
to setup ssh tunneling through gateway.
 
(2) Keep iTerm window in (1) open, open a new iTerm run command
 
ssh prince -Y

you should be able to directly login to prince from your local computer as long as ssh tunneling in step (1) is running, X11 forwarding is enabled.
 
scp is similar as ssh.
 
For Windows with Putty for ssh login
 
https://wikis.nyu.edu/display/NYUHPC/Accessing+HPC+clusters+from+Windows+workstation
 
For Windows with SCP for data transfer
 
https://wikis.nyu.edu/pages/viewpage.action?pageId=84612833

 

Wireshark 2.6.3. is available with Singularity image file 
 
/beegfs/work/public/singularity/wireshark-2.6.3.simg
 
Please launch wireshark with command
 
singularity exec /beegfs/work/public/singularity/wireshark-2.6.3.simg wireshark
 
[wang@c17-04 ~]$ singularity exec /beegfs/work/public/singularity/wireshark-2.6.3.simg which wireshark
/usr/bin/wireshark
[wang@c17-04 ~]$ singularity exec /beegfs/work/public/singularity/wireshark-2.6.3.simg wireshark --version
Wireshark 2.6.3 (Git v2.6.3 packaged as 2.6.3-1~18.04.0)
 
Copyright 1998-2018 Gerald Combs < gerald@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later < http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Compiled (64-bit) with Qt 5.9.5, with libpcap, with POSIX capabilities (Linux),
with libnl 3, with GLib 2.56.2, with zlib 1.2.11, with SMI 0.4.8, with c-ares
1.14.0, with Lua 5.2.4, with GnuTLS 3.5.18, with Gcrypt 1.8.1, with MIT
Kerberos, with MaxMind DB resolver, with nghttp2 1.30.0, with LZ4, with Snappy,
with libxml2 2.9.4, with QtMultimedia, with SBC, with SpanDSP, without bcg729.
 
Running on Linux 3.10.0-514.10.2.el7.x86_64, with Intel(R) Xeon(R) CPU E5-2690
v4 @ 2.60GHz (with SSE4.2), with 128826 MB of physical memory, with locale C,
with libpcap version 1.8.1, with GnuTLS 3.5.18, with Gcrypt 1.8.1, with zlib
1.2.11, binary plugins supported (0 loaded).
 
Built using gcc 7.3.0.
[wang@c17-04 ~]$
singularity exec /beegfs/work/public/singularity/wireshark-2.6.3.simg wireshark

 

 

 

 Solution:
 

https://uisapp2.iu.edu/confluence-prd/pages/viewpage.action?pageId=280461906

Mac OS X

    1. Install XQuartz on your Mac, which is the official X server software for Mac
    2. Run Applications > Utilities > XQuartz.app
    3. Right click on the XQuartz icon in the dock and select Applications > Terminal.  This should bring up a new xterm terminal windows.

    4. In this xterm windows, ssh into the linux system of your choice using the -X argument (secure X11 forwarding).  For example, to log into hulk.soic.indiana.edu you would run something like:

           ssh -Y username@hulk.soic.indiana.edu

    5. Once you are logged into the linux system, you can just run the GUI program of your choice (ie. matlab, mathematics, etc) and it will display on your Mac.

 

https://wikis.nyu.edu/display/ADRC/Enable+X11+Forwarding+on+Mac+OS+X

Enable X11 Forwarding on Mac OS X

If you own a recent Mac computer and you realize that you can''t start any GUI app from the cluster, even when you used the -X option with ssh; then you may have to enable X11 Forwarding on MacOS.

Step-by-step guide

  1. By default, X11 forwarding is not enabled on Mac Leopard, and from Mountain Lion on, Apple decided not to ship X11 with the OS. If that latter is your case, then first you will have to install XQuartz from here:  http://xquartz.macosforge.org.

  2. Once you have it installed, you should be able to connect to prince with X11.

    ssh -X <NetID> @prince.hpc .nyu.edu
     
     
     
     

python – Windows上的VirtualEnv,pip无法安装带有C扩展名的软件包

python – Windows上的VirtualEnv,pip无法安装带有C扩展名的软件包

我正在尝试现代化一点,但无论出于何种原因,pip无法安装任何带有C扩展名的东西.讨厌的罪犯是 MySQLdb,PIL,Fabric.我可以用exe安装它们,但现代需求技术不起作用.

例如,这是PIL的作用(虚拟测试是环境,还没有其他内容):

(virtualtesting) C:\Users\jgoldstein\Localhost\virtualtesting>pip install pil
Downloading/unpacking pil
  Downloading PIL-1.1.7.tar.gz (506Kb): 506Kb downloaded
  Running setup.py egg_info for package pil
    WARNING: '''' not a valid package name; please use only.-separated package names in setup.py

Installing collected packages: pil
  Running setup.py install for pil
    WARNING: '''' not a valid package name; please use only.-separated package names in setup.py
    building ''_imaging'' extension
    error: Unable to find vcvarsall.bat
    Complete output from command C:\Users\jgoldstein\Localhost\virtualtesting\Scripts\python.exe -c "import setuptools;__file__=''C:\\Users\\jgoldstein\\Localhost\\virtualtesting\\build\\pil\\setup.py'';exec(compile(open(__file__).read().replace(''\r\n'',''\n''),__file__,''exec''))" install --single-version-externally-managed --record c:\users\jgolds~1\appdata\local\temp\pip-wbez3q-record\install-record.txt --install-headers C:\Users\jgoldstein\Localhost\virtualtesting\include\site\python2.7:
    WARNING: '''' not a valid package name; please use only.-separated package names in setup.py

running install

running build

running build_py

creating build

creating build\lib.win32-2.7

copying PIL\ArgImagePlugin.py -> build\lib.win32-2.7

copying PIL\BdfFontFile.py -> build\lib.win32-2.7

copying PIL\BmpImagePlugin.py -> build\lib.win32-2.7

copying PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7

copying PIL\ContainerIO.py -> build\lib.win32-2.7

copying PIL\CurImagePlugin.py -> build\lib.win32-2.7

copying PIL\DcxImagePlugin.py -> build\lib.win32-2.7

copying PIL\EpsImagePlugin.py -> build\lib.win32-2.7

copying PIL\ExifTags.py -> build\lib.win32-2.7

copying PIL\FitsstubImagePlugin.py -> build\lib.win32-2.7

copying PIL\FliImagePlugin.py -> build\lib.win32-2.7

copying PIL\FontFile.py -> build\lib.win32-2.7

copying PIL\FpxImagePlugin.py -> build\lib.win32-2.7

copying PIL\GbrImagePlugin.py -> build\lib.win32-2.7

copying PIL\GdImageFile.py -> build\lib.win32-2.7

copying PIL\GifImagePlugin.py -> build\lib.win32-2.7

copying PIL\GimpGradientFile.py -> build\lib.win32-2.7

copying PIL\GimpPaletteFile.py -> build\lib.win32-2.7

copying PIL\GribStubImagePlugin.py -> build\lib.win32-2.7

copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-2.7

copying PIL\icnsImagePlugin.py -> build\lib.win32-2.7

copying PIL\IcoImagePlugin.py -> build\lib.win32-2.7

copying PIL\Image.py -> build\lib.win32-2.7

copying PIL\ImageChops.py -> build\lib.win32-2.7

copying PIL\ImageCms.py -> build\lib.win32-2.7

copying PIL\ImageColor.py -> build\lib.win32-2.7

copying PIL\ImageDraw.py -> build\lib.win32-2.7

copying PIL\ImageDraw2.py -> build\lib.win32-2.7

copying PIL\ImageEnhance.py -> build\lib.win32-2.7

copying PIL\ImageFile.py -> build\lib.win32-2.7

copying PIL\ImageFileIO.py -> build\lib.win32-2.7

copying PIL\ImageFilter.py -> build\lib.win32-2.7

copying PIL\ImageFont.py -> build\lib.win32-2.7

copying PIL\ImageGL.py -> build\lib.win32-2.7

copying PIL\ImageGrab.py -> build\lib.win32-2.7

copying PIL\ImageMath.py -> build\lib.win32-2.7

copying PIL\ImageMode.py -> build\lib.win32-2.7

copying PIL\ImageOps.py -> build\lib.win32-2.7

copying PIL\ImagePalette.py -> build\lib.win32-2.7

copying PIL\ImagePath.py -> build\lib.win32-2.7

copying PIL\ImageQt.py -> build\lib.win32-2.7

copying PIL\ImageSequence.py -> build\lib.win32-2.7

copying PIL\ImageShow.py -> build\lib.win32-2.7

copying PIL\ImageStat.py -> build\lib.win32-2.7

copying PIL\ImageTk.py -> build\lib.win32-2.7

copying PIL\ImageTransform.py -> build\lib.win32-2.7

copying PIL\ImageWin.py -> build\lib.win32-2.7

copying PIL\ImImagePlugin.py -> build\lib.win32-2.7

copying PIL\ImtimagePlugin.py -> build\lib.win32-2.7

copying PIL\IptcImagePlugin.py -> build\lib.win32-2.7

copying PIL\JpegImagePlugin.py -> build\lib.win32-2.7

copying PIL\McIdasImagePlugin.py -> build\lib.win32-2.7

copying PIL\MicImagePlugin.py -> build\lib.win32-2.7

copying PIL\MpegImagePlugin.py -> build\lib.win32-2.7

copying PIL\MspImagePlugin.py -> build\lib.win32-2.7

copying PIL\OleFileIO.py -> build\lib.win32-2.7

copying PIL\PaletteFile.py -> build\lib.win32-2.7

copying PIL\PalmImagePlugin.py -> build\lib.win32-2.7

copying PIL\PcdImagePlugin.py -> build\lib.win32-2.7

copying PIL\PcfFontFile.py -> build\lib.win32-2.7

copying PIL\PcxImagePlugin.py -> build\lib.win32-2.7

copying PIL\PdfImagePlugin.py -> build\lib.win32-2.7

copying PIL\PixarImagePlugin.py -> build\lib.win32-2.7

copying PIL\PngImagePlugin.py -> build\lib.win32-2.7

copying PIL\PpmImagePlugin.py -> build\lib.win32-2.7

copying PIL\PsdImagePlugin.py -> build\lib.win32-2.7

copying PIL\PSDraw.py -> build\lib.win32-2.7

copying PIL\sgiImagePlugin.py -> build\lib.win32-2.7

copying PIL\SpiderImagePlugin.py -> build\lib.win32-2.7

copying PIL\SunImagePlugin.py -> build\lib.win32-2.7

copying PIL\TarIO.py -> build\lib.win32-2.7

copying PIL\TgaimagePlugin.py -> build\lib.win32-2.7

copying PIL\TiffImagePlugin.py -> build\lib.win32-2.7

copying PIL\TiffTags.py -> build\lib.win32-2.7

copying PIL\WalImageFile.py -> build\lib.win32-2.7

copying PIL\WmfImagePlugin.py -> build\lib.win32-2.7

copying PIL\XbmImagePlugin.py -> build\lib.win32-2.7

copying PIL\XpmImagePlugin.py -> build\lib.win32-2.7

copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7

copying PIL\__init__.py -> build\lib.win32-2.7

running build_ext

building ''_imaging'' extension

error: Unable to find vcvarsall.bat

----------------------------------------
Command C:\Users\jgoldstein\Localhost\virtualtesting\Scripts\python.exe -c "import setuptools;__file__=''C:\\Users\\jgoldstein\\Localhost\\virtualtesting\\build\\pil\\setup.py'';exec(compile(open(__file__).read().replace(''\r\n'',''exec''))" install --single-version-externally-managed --record c:\users\jgolds~1\appdata\local\temp\pip-wbez3q-record\install-record.txt --install-headers C:\Users\jgoldstein\Localhost\virtualtesting\include\site\python2.7 Failed with error code 1
Storing complete log in C:\Users\jgoldstein\AppData\Roaming\pip\pip.log

它是Python 2.7(32位),VirtualEnv 1.7,Windows 7(64位).我……干嘛

所以第一个问题:这可以解决吗?

第二个问题:似乎我将exe安装程序运行到主站点包并将结果复制到VirtualEnv的目录中,它可以正常工作.如果我想要一个pip requirements.txt做事模型,这样做有多糟糕呢?

(显然,在服务器上所有这些东西都很好用.)

解决方法

对于第一个问题,请看:
error: Unable to find vcvarsall.bat

无法回答第二个,我不知道:|

python – 在windows的virtualenv中安装lxml

python – 在windows的virtualenv中安装lxml

我最近开始使用virtualenv,并希望在这个孤立的环境中安装lxml.

通常我会使用windows二进制安装程序,但我想在这个virtualenv中使用lxml(不是全局的). Pip安装对lxml不起作用,所以我无法做我能做的事情.

我已经读过创建符号链接可能会起作用,虽然我不熟悉符号链接的工作方式以及我应该创建它们的文件.有没有其他人知道在Windows上的virtualenv中安装lxml的任何方法?

如果创建符号链接是唯一有效的方法我肯定愿意学习是否有人可以指出我正确的方向.

解决方法

最简单的方法是将库复制到virtualenv site-packages文件夹中.符号链接是一种使文件出现在文件系统上的方法,即文件在那里但在物理上位于另一个位置.如果你复制了库,它将是真正的孤立.

因此,进入您的全局站点包文件夹,并将lxml文件夹和lxml egg文件夹复制到您的virtualenv站点包中.如果你真的想要符号链接(对于NTFS),请查看here.

关于在windows上安装msi文件到virtualenv pythonswin10安装msi文件2503的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于Ansible – 尝试python3.5时找不到Virtualenv可执行文件、HPC install software on python virtual environment without root right and use X graph (windows) t...、python – Windows上的VirtualEnv,pip无法安装带有C扩展名的软件包、python – 在windows的virtualenv中安装lxml的相关知识,请在本站寻找。

本文标签: