Re: [Distutils] Module Installation Issues

2016-09-15 Thread Wes Turner
You can install bash on windows. (GoW, Cygwin, Ming), but Docker (and,
soon, runC OCP 1.0) is probably your best bet for maximum compatibility
with most {python, open source} tutorials. Installing the code as non-root
is a good idea (e.g. with a .zip or a .tar.gz or a Python .whl wheel)


I think the bash $ and # PS1 should be fairly easy to differentiate from
unprefixed expressions. IDK if those are the POSIX defaults.

These list {Linux,Mac} when Windows is not supported:
https://docs.continuum.io/anaconda/pkg-docs

.rst/ReStructuredText: code directive

.. code:: bash

# Check out the switches for ifconfig/ipconfig /h.


.. code:: python

   """PowerShell is open source now"""


.md/Markdown: fenced code block

```bash
bash --version
help declare -r
```

```python
python -v
```

On Thursday, September 15, 2016, Thomas Kluyver 
wrote:

> On Thu, Sep 15, 2016, at 01:53 PM, Wes Turner wrote:
>
> Shell commands can/could/should be clearly indicated with a '$' prefix:
>
> $ python -m pip install numpy
>
>
> That's a common convention, but:
>
> - It comes from POSIX platforms where the default prompt ends in $. The
> default prompt in Windows ends with >, so $ is not clear.
> - On all platforms, new users may well not recognise that convention.
> - Users may think they have to type the $ as part of the command, leading
> to even more confusion.
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Module Installation Issues

2016-09-15 Thread Thomas Kluyver
On Thu, Sep 15, 2016, at 01:53 PM, Wes Turner wrote:
> Shell commands can/could/should be clearly indicated with a '$'
> prefix:
>
> $ python -m pip install numpy

That's a common convention, but:

- It comes from POSIX platforms where the default prompt ends in $. The
  default prompt in Windows ends with >, so $ is not clear.
- On all platforms, new users may well not recognise that convention.
- Users may think they have to type the $ as part of the command,
  leading to even more confusion.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Module Installation Issues

2016-09-15 Thread Wes Turner
Useful banking/finance Python resources:

- https://pypi.python.org/pypi/ofxparse
- https://wrdrd.com/docs/consulting/investing#quantopian
- Places that have some Python in their stack:
  - JP Morgan
  - Bank of America Merrill Lynch
  - Quantopian
   - qgrid, zipline, pyfolio, ...


On Thursday, September 15, 2016, Wes Turner  wrote:

>
>
> On Tuesday, September 13, 2016, Mills, Ryan  com >
> wrote:
>
>> I just recently downloaded Python 3.5 and cannot seem to install any
>> packages like Numpy, etc.  I have tried all the instructions on the website
>> and keep getting errors:
>>
>>
>>
>> For example, when I type “python –m pip install Numpy” it returns  a
>> Syntax Error. I am completely new to Python so I must be missing something
>> here – I haven’t altered any files since installing it the other day. Do I
>> use the Python IDLE Shell? Are there other packages I need to install
>> first?  Any help would be greatly appreciated.
>>
>
> Shell commands can/could/should be clearly indicated with a '$' prefix:
>
> $ python -m pip install numpy
>
> Python expressions are sometimes prefixed with '>>>':
>
> >>> import numpy as np
>
> TBH, as a beginner, it's probably way easier to start with Anaconda (conda
> packages) and pip (python packages) (because there are a number of
> libraries required to build numpy and then whatever else):
>
> - https://docs.continuum.io/anaconda/
> - $ conda install pip; python -m pip install
> - $ which python; python -m site
>
> The software carpentry lessons are a good place to start from:
>
> - http://software-carpentry.org/lessons/
>   - http://swcarpentry.github.io/python-novice-inflammation/
>
> Also great resources:
>
> - http://www.scipy-lectures.org
> - https://github.com/jrjohansson/scientific-python-lectures
> (IPython/Jupyter nb)
>
> - https://westurner.org/wiki/awesome-python-testing#python
>   - https://westurner.org/tools/#python
>   - http://learnxinyminutes.com/docs/python/
>   - http://docs.python.org/2/library/unittest.html
>
>   - https://westurner.org/tools/#numpy
>
> - IDLE is pretty cool.
> - IPython is great.
>
> - Jupyter Notebook is a reverse shell.
> - Spyder ($ conda install spyder)
> - [commercial IDE preference]
>
>
> - If you write tests from the start, there's less run/check/run/check
> manual testing and more test coverage.
>
>
>
>>
>> -Ryan
>>
>>
>>
>> Ryan Mills
>>
>> *Quantitative Risk Analyst, Banking Officer*
>>
>> [image: cid:image001.jpg@01CA3228.EF8AEBA0]
>>
>> Capital Analytics & Stress Testing
>> 2000 McKinney Avenue, Suite 700
>>
>> Dallas, TX 75201
>>
>> 214.932.6653 direct
>>
>> 20.6653 internal
>> ryan.mi...@texascapitalbank.com
>>
>> [image: cid:image001.jpg@01CA3228.EF8AEBA0]
>>
>> [image: TCB_horiz_Log_rgb]
>>
>>
>>
>> If you are not the addressee and have received this email in error,
>> please notify me immediately. This email is confidential and may contain
>> privileged or proprietary information that is unlawful for you to read,
>> copy, distribute, disclose or otherwise use in any way.
>>
>>
>>
>>
>>
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig