1
2
3
4
5
6
7
    <SeekBar
            android:id="@+id/seekBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:progress="50"
     />
 
cs

간-단

 

1~5번 : 일반설치

6번 : 아나콘다 환경에서 설치

난 알못이라 둘다했음..ㅠㅠ

 

1. python3 설치

https://zetawiki.com/wiki/%EB%A7%A5OS_python3_%EC%84%A4%EC%B9%98

 

2. pip 설치

1
sudo easy_install pip
cs

 

 

3. pip 버전 확인

1
pip -V
cs

 

 

4. virtualenv 설치 (virtualenv : 파이썬이 독립된 가상 환경에서 작동되도록 하는 도구!)

1
2
3
4
5
# Python2의 경우
$ pip install virtualenv virtualenvwrapper
 
# Python3의 경우
$ pip3 install virtualenv virtualenvwrapper
cs
 

4-1. ??????????????????? ~일단 둘다 함~

1
sudo -H pip3 install -U virtualenv
cs

 

4-2. 4번에서 퍼미션 관련 오류났을때

https://potensj.tistory.com/73

1
python3 -m pip install --user virtualenv virtualenvwrapper
 
cs

 

5. tensorflow 설치

1
pip install --upgrade tensorflow
cs
 
 

5. tensorflow 버전 확인

1
2
python -'import tensorflow as tf; print(tf.__version__)' # for Python 2
python3 -'import tensorflow as tf; print(tf.__version__)' # for Python 3
cs

6. tensorflow 아나콘다 환경에서 설치 

https://lhh3520.tistory.com/370

 

'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED:' 에러.

Hㅏ 진짜 ㅡㅡ 이것때문에 2주간 스트레스 받은 거 생각하니 얼탱 없고 억울해 죽겠다.

구글 검색해봐도 패키지 이름을 소문자로 변경하기만 하면 된다고 하는데 패키지 이름뿐만 아니라 클래스 전부를 소문자로 변경해도 절대해결안됨ㅡㅡ

'<service> does not have valid android:name.' 이라고 하는데 그 전에는 문제 없이 잘만 돌아가던 service 이름이 갑자기 문제가 됐다고하니 이유는 알수 없고 억울함 한가득 ㅡㅡㅡㅡㅡㅡ

1
        <service android:name="_library._BluetoothLE.BleService" android:enabled="true"/>
 

원인은 '_library' 의 '_' 였다...........'_' 지우니 문제없이 잘 돌아감....ㅠ....... 빡치지만 해결해서 다행이다.

메모리에러. 

매니페스트 파일 application에 android:hardwareAccelerated="false", android:largeHeap="true" 추가

1
2
3
4
5
6
7
8
9
10
<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:largeHeap = "true"
        android:hardwareAccelerated="false"
        android:theme="@style/AppTheme">
</application>
cs

 

Passing (type, 1) or '1type' as a synonym of type is deprecated

Numpy 버전이 1.17 보다 낮게 설정되어야함.

해결 -> numpy가 설치된 경로들어가서 numpy 관련 파일 모두 제거 후

터미널에 입력 :  pip install "numpy<1.17"

'개발 > Tensorflow' 카테고리의 다른 글

[Tensorflow] 맥에 텐서플로우 설치하는 방법  (1) 2019.09.02

ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.0

해결방법

1
2
3
4
5
6
7
8
9
10
allprojects {
    repositories {
    ...
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    ...
    }
}
cs
1
2
3
      Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("smsto:"+"번호1;번호2"));
                intent.putExtra("sms_body","메세지 내용");
                This.startActivity(intent);
cs

 

main_menu_layout : 터치이벤트를 막고싶은 레이아웃의 id

1
        main_menu_layout.setClickable(true);
cs

 

+ Recent posts