ptvs

Working with PTVS, IronPython and MongoDB

一世执手 提交于 2019-12-02 01:31:42
I want to develop an applocation using the PTVS (Python Tools for Visual Studio) and i download the PTVS pluging and IronPython for Visual Studio 2012, it works perfectly. My question here is, Can i use MongoDB with PTVS and ItonPython? If i can, how can i do it? I already tried to install it by clicking on Install Python Package , but every time ask me to install pip and fails on install. Then of course the command pip install pymongo fails because pip is not installed. Here is the error: Installing 'pip' package manager. Downloading setuptools from https://go.microsoft.com/fwlink/?LinkId

Visual Studio Python Environments window does not display

旧城冷巷雨未停 提交于 2019-12-01 01:55:20
I have installed Win10, Visual Studio 2015, Python 2.7, Python 3.5 and PTVS 2.2.3. Unfortunately PTVS does not work at all. I can not load any Python projects that were loading previously in Visual Studio. It worked before I installed Python 3.5. I tried to uninstall Python 2.7 and get an error saying that the uninstall didn't success. After several tries, the problem appears to be around pip which is somehow blocking both install and uninstall of Python 2.7. When trying to open Python Tools from Tools menu, nothing happens. Neither window opens nor any error message is displayed. Python

PTVS: How to reference or use Python source code in one project from a second project

人走茶凉 提交于 2019-11-30 19:52:15
In Visual Studio with PTVS I have two separate Python projects, one contains a Python source file named lib.py for use as a library of functions and the other is a main that uses the functions in the library. I am using an import statement in the main to reference the functions in the library project but get the following error: No module named lib I primarily program in F# using Visual Studio so my mindset is adding references to other .NET projects. How do I think in the Pythonic way to accomplish this? Python does not use references like .NET does but uses a path which is searched. The

PTVS: How to reference or use Python source code in one project from a second project

我的未来我决定 提交于 2019-11-30 04:27:19
问题 In Visual Studio with PTVS I have two separate Python projects, one contains a Python source file named lib.py for use as a library of functions and the other is a main that uses the functions in the library. I am using an import statement in the main to reference the functions in the library project but get the following error: No module named lib I primarily program in F# using Visual Studio so my mindset is adding references to other .NET projects. How do I think in the Pythonic way to

Pandas import error when debugging using PVTS

自古美人都是妖i 提交于 2019-11-29 14:21:06
I am dealing with a very silly error, and wondering if any of you have the same problem. When I try to import pandas using import pandas as pd I get an error in copy.py. I debugged into the pamdas imports, and I found that the copy error is thrown when pandas tries to import this: from pandas.io.html import read_html The exception that is throwns is: un(shallow)copyable object of type <type 'Element'> I do not get this error if I try to straight up run the code and not use the PVTS debugger. I am using the python 2.7 interpreter, pandas version 0.12 which came with the python xy 2.7.5.1 distro

Can pip be used with Python Tools in Visual Studio?

假如想象 提交于 2019-11-28 18:32:47
I'm collaborating with some fellow students to build a python app, and was hoping to use the 'training wheels' of Visual Studio intelli-sense. They use python on mac and linux, so ideally our source control repo would consist of just *.py source files that we wrote, and a requirements.txt export of pip dependancies (using the pip freeze method). I would love to be able to create a new Visual Studio project, then be able to run the following commands (for instance) within that project: pip install boto pip install fabric pip install cuisine pip freeze > requirements.txt And after that, be able

Pandas import error when debugging using PVTS

♀尐吖头ヾ 提交于 2019-11-28 08:18:07
问题 I am dealing with a very silly error, and wondering if any of you have the same problem. When I try to import pandas using import pandas as pd I get an error in copy.py. I debugged into the pamdas imports, and I found that the copy error is thrown when pandas tries to import this: from pandas.io.html import read_html The exception that is throwns is: un(shallow)copyable object of type <type 'Element'> I do not get this error if I try to straight up run the code and not use the PVTS debugger.

Add CNTK virtualenv to Visual Studio Python project

你。 提交于 2019-11-27 02:22:31
问题 I followed Setup CNTK on Windows, and confirmed that I can run CTNK from my local command prompt. C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>.\Scripts\activate.bat (root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>set PATH=C:\local\CNTK-2-0-beta3-0-Windows-64bit-CPU-Only\cntk\cntk;%PATH% (root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>python -i Python 3.4.4 |Continuum Analytics, Inc.| (default, Jun 15 2016, 15:25:08) [MSC v.1600 64 bit (AMD64)] on win32