顯示具有 windows 標籤的文章。 顯示所有文章
顯示具有 windows 標籤的文章。 顯示所有文章

2017年7月19日 星期三

2017年6月22日 星期四

[Python][Windows] How to use python on windows

  1. Install package
    PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe
    python-3.5.2-amd64.exe

  2. Set the path of python into system environment
    Ref:
    [教學] 如何在 Windows 平台建立 Python 編程環境
    How to add to the pythonpath in windows 7?

  3. Copy ui to site-packages
    A. find out where is the location of site-packages
    Ref
    What is python’s site-packages directory?

  4. Install pyvisa through pip
    Through ez_setup.py to install pip
    Ref
    Windows 7 (or graphical install)
    According to above article, user cand download ez_setup.py from specific hyperlink.
    ez_setup.py



Jump to C:\Users\Administrator\AppData\Local\Programs\Python\Python35\Scripts


Type following command
Upgrade pip from pip-8.1.1 to pip-9.0.1
python -m pip install –upgrade pip


pip install pyvisa



Reference:

2016年7月30日 星期六

2016年4月28日 星期四

2016年1月5日 星期二

2015年12月21日 星期一

2015年8月4日 星期二

[Ping] ICMP no response

A:
When Linux ping to winXP, but winXP no response.
207 175.808410000 192.168.7.2 192.168.137.1 ICMP 98 Echo (ping) request id=0x04b6, seq=2/512, ttl=63 (no response found!)
WinXP <-----------------+  Linux

Q:
Please turn off the firewall of winXP

Reference:

2014年7月8日 星期二

2014年6月16日 星期一

2014年6月12日 星期四

2014年5月9日 星期五

2014年5月8日 星期四

2014年4月5日 星期六

[Gcc][Cygwin] How to compile c code by using cgywin on windows

[Gcc][Cygwin] How to compile c code by using cgywin on windows

1. Install Cygwin

Installing gcc with Cygwin

Select gcc-core and make to install.



2. Put the c code into C:\cygwin\home\happy>


3. Type   gcc Test.c

4. Execute Test.exe

User must copy cygwin1.dll to C:\cygwin\home\happy.

Otherwise execute Test.ext won't work.




a.

On Cygwin Terminal

$ cp bin/cygwin1.dll /home/happy/



b.

On Windows Terminal

C:\cygwin\home\happy>Test.exe



Reference :







[MinGW] How to compile c by using gcc on window


[MinGW] How to compile c by using gcc on window



1. Install MinGW



Go to http://sourceforge.net/projects/mingw/files/



Click Installer



Choose mingw-get-setup.exe to install window system



2. Go to C:\MinGW\bin>



3. Create test.c



4. type gcc test.c



#include <stdio.h>



int main()

{



        printf("Happy \n");

        return 1;



}



After compile will produce a test.exe



5. Execute test.exe will print Happy on terminal



Reference :